Files
2023-09-08 12:56:19 -04:00

29 lines
868 B
YAML

image: node:16
pipelines:
default:
- step:
name: Build and Test
script:
- npm install
- npm test
- apt update && apt install zip
- zip -r app-$BITBUCKET_BUILD_NUMBER.zip . -x *.git* bitbucket-pipelines.yml
artifacts:
- "*.zip"
- step:
name: Code linting
script:
- npm install eslint
- npx eslint .
- step:
name: Deploy to Production
script:
- pipe: atlassian/unknown-azure-deploy:1.1.0
variables:
AZURE_APP_ID: $AZURE_APP_ID
AZURE_PASSWORD: $AZURE_PASSWORD
AZURE_TENANT_ID: $AZURE_TENANT_ID
AZURE_RESOURCE_GROUP: $AZURE_RESOURCE_GROUP
AZURE_APP_NAME: "my-site"
ZIP_FILE: "my-package.zip"