Created
November 21, 2019 20:05
-
-
Save mikaelvesavuori/a46d92b387a592b59f503013fa1354da to your computer and use it in GitHub Desktop.
Azure DevOps pipelines for building Node app and deploying static site
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
trigger: | |
- master | |
pool: | |
vmImage: 'ubuntu-latest' | |
variables: | |
- group: Deployment variables | |
steps: | |
- task: NodeTool@0 | |
inputs: | |
versionSpec: '10.x' | |
displayName: 'Install Node.js' | |
- script: | | |
cd app | |
npm install | |
npm run build | |
az storage blob upload-batch --account-name $STORAGE_ACCOUNT_NAME --account-key $STORAGE_ACCOUNT_KEY -d '$web' -s ./dist/ | |
displayName: 'NPM install and build, then send to Azure Storage' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment