Skip to content

Commit 5f9967a

Browse files
Incorporate suggestions
1 parent 616076f commit 5f9967a

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

azure-pipelines.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
1+
variables:
2+
group: docker-creds
3+
14
jobs:
25
- job: Windows
36
pool:
47
vmImage: win1803
58
variables:
6-
group: docker-creds
79
IMAGE_NAME: 'crates-build-env-windows'
810
steps:
911
- pwsh: ./windows/ci/build.ps1
1012
displayName: Build Docker image
1113
- pwsh: ./windows/ci/publish.ps1
1214
displayName: Publish image to Docker Hub
13-
# FIXME: Using condition for this seems brittle, maybe there's a better way?
1415
condition: |
15-
and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'), ne(variables['Build.Reason'], 'PullRequest'))
16+
and(succeeded(),
17+
eq(variables['Build.SourceBranch'], 'refs/heads/master'),
18+
ne(variables['Build.Reason'], 'PullRequest'))
1619
env:
17-
DOCKER_PASSWORD: $(DockerPassword)
18-
DOCKER_USERNAME: $(DockerUsername)
20+
DOCKER_PASSWORD: $(DOCKER_PASSWORD)
21+
DOCKER_USERNAME: $(DOCKER_USERNAME)

0 commit comments

Comments
 (0)