Skip to content

Instantly share code, notes, and snippets.

@mikaelvesavuori
Created November 21, 2019 20:05
Show Gist options
  • Save mikaelvesavuori/a46d92b387a592b59f503013fa1354da to your computer and use it in GitHub Desktop.
Save mikaelvesavuori/a46d92b387a592b59f503013fa1354da to your computer and use it in GitHub Desktop.
Azure DevOps pipelines for building Node app and deploying static site
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