Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Commit

Permalink
ci(azure): updates azure pipeline yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
matteovivona committed Feb 15, 2020
1 parent b95ead9 commit 93d8c4d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions azure.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ trigger:
include:
- refs/tags/v*

pr: none

jobs:
- job: npm_job
continueOnError: false
Expand All @@ -20,7 +22,7 @@ jobs:
displayName: 'Install Node.js'
- bash: npm install
displayName: 'Install dependencies'
- bash: npm lint
- bash: npm run lint
displayName: 'Lint code'
- bash: npm run build
displayName: 'Build code'
Expand Down Expand Up @@ -67,14 +69,14 @@ jobs:
displayName: 'Build an image'
inputs:
containerregistrytype: 'Container Registry'
dockerRegistryConnection: Docker
dockerRegistryConnection: Docker # it is necessary to create a new "service connection" via Azure DevOps portal
dockerFile: ./Dockerfile
buildArguments: '--rm --squash'
imageName: '$(Build.Repository.Name):$(VERSION_TAG)'
- task: Docker@0
displayName: 'Push an image'
inputs:
containerregistrytype: 'Container Registry'
dockerRegistryConnection: Docker
dockerRegistryConnection: Docker # it is necessary to create a new "service connection" via Azure DevOps portal
action: 'Push an image'
imageName: '$(Build.Repository.Name):$(VERSION_TAG)'

1 comment on commit 93d8c4d

@vercel
Copy link

@vercel vercel bot commented on 93d8c4d Feb 15, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.