We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6c76fb2 + 82abbdf commit fe1bd41Copy full SHA for fe1bd41
windows/ci/publish.ps1
@@ -3,6 +3,13 @@ $ErrorActionPreference = "Stop"
3
# Build the image
4
./windows/ci/build.ps1
5
6
+foreach ($var in "DOCKER_USERNAME", "DOCKER_PASSWORD") {
7
+ if (-not (Test-Path "env:$var")) {
8
+ echo "Environment variable \"$var\" not set"
9
+ exit 22
10
+ }
11
+}
12
+
13
# Log in to dockerhub
14
[System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String($Env:DOCKER_PASSWORD)).Trim() `
15
| docker login --username "$Env:DOCKER_USERNAME" --password-stdin
0 commit comments