Skip to content

Commit 1b6812f

Browse files
committed
Minor changes to match templates
1 parent b66b7a9 commit 1b6812f

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

.vsts-ci.acr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
queue: 'Hosted Linux Preview'
55

66
variables:
7-
imageName: '$(Build.DefinitionName):$(Build.BuildId)'
7+
imageName: 'nodejssample:$(Build.BuildId)'
88
# define two more variables dockerId and dockerPassword in the build pipeline in UI
99

1010
steps:
1111
- script: |
1212
npm install
1313
npm test
14-
docker build -t $(dockerId).azurecr.io/$(imageName) .
14+
docker build -f Dockerfile -t $(dockerId).azurecr.io/$(imageName) .
1515
docker login -u $(dockerId) -p $pswd $(dockerId).azurecr.io
1616
docker push $(dockerId).azurecr.io/$(imageName)
1717
env:

.vsts-ci.docker.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
queue: 'Hosted Linux Preview'
55

66
variables:
7-
imageName: '$(Build.DefinitionName):$(Build.BuildId)'
7+
imageName: 'nodejssample:$(Build.BuildId)'
88
# define two more variables dockerId and dockerPassword in the build pipeline in UI
99

1010
steps:
1111
- script: |
1212
npm install
1313
npm test
14-
docker build -t $(dockerId)/$(imageName) .
14+
docker build -f Dockerfile -t $(dockerId)/$(imageName) .
1515
docker login -u $(dockerId) -p $pswd
1616
docker push $(dockerId)/$(imageName)
1717
env:

.vsts-ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
queue: 'Hosted Linux Preview'
55

66
steps:
7+
- task: NodeTool@0
8+
inputs:
9+
versionSpec: '8.x'
10+
711
- script: |
812
npm install
913
npm test

0 commit comments

Comments
 (0)