File tree Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 4
4
queue : ' Hosted Linux Preview'
5
5
6
6
variables :
7
- imageName : ' $(Build.DefinitionName) :$(Build.BuildId)'
7
+ imageName : ' nodejssample :$(Build.BuildId)'
8
8
# define two more variables dockerId and dockerPassword in the build pipeline in UI
9
9
10
10
steps :
11
11
- script : |
12
12
npm install
13
13
npm test
14
- docker build -t $(dockerId).azurecr.io/$(imageName) .
14
+ docker build -f Dockerfile - t $(dockerId).azurecr.io/$(imageName) .
15
15
docker login -u $(dockerId) -p $pswd $(dockerId).azurecr.io
16
16
docker push $(dockerId).azurecr.io/$(imageName)
17
17
env :
Original file line number Diff line number Diff line change 4
4
queue : ' Hosted Linux Preview'
5
5
6
6
variables :
7
- imageName : ' $(Build.DefinitionName) :$(Build.BuildId)'
7
+ imageName : ' nodejssample :$(Build.BuildId)'
8
8
# define two more variables dockerId and dockerPassword in the build pipeline in UI
9
9
10
10
steps :
11
11
- script : |
12
12
npm install
13
13
npm test
14
- docker build -t $(dockerId)/$(imageName) .
14
+ docker build -f Dockerfile - t $(dockerId)/$(imageName) .
15
15
docker login -u $(dockerId) -p $pswd
16
16
docker push $(dockerId)/$(imageName)
17
17
env :
Original file line number Diff line number Diff line change 4
4
queue : ' Hosted Linux Preview'
5
5
6
6
steps :
7
+ - task : NodeTool@0
8
+ inputs :
9
+ versionSpec : ' 8.x'
10
+
7
11
- script : |
8
12
npm install
9
13
npm test
You can’t perform that action at this time.
0 commit comments