You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
675 B
21 lines
675 B
$ErrorActionPreference = 'Stop';
|
|
|
|
if (! (Test-Path Env:\APPVEYOR_REPO_TAG_NAME)) {
|
|
Write-Host "No version tag detected. Skip publishing."
|
|
exit 0
|
|
}
|
|
|
|
Write-Host Starting deploy
|
|
docker login -u="$env:DOCKER_USER" -p="$env:DOCKER_PASS"
|
|
|
|
docker tag whoami stefanscherer/whoami:windows-amd64-$env:APPVEYOR_REPO_TAG_NAME
|
|
|
|
docker push stefanscherer/whoami:windows-amd64-$env:APPVEYOR_REPO_TAG_NAME
|
|
|
|
Write-Host Rebasing image to produce 1709 variant
|
|
npm install -g rebase-docker-image
|
|
rebase-docker-image `
|
|
stefanscherer/whoami:windows-amd64-$env:APPVEYOR_REPO_TAG_NAME `
|
|
-t stefanscherer/whoami:windows-amd64-$env:APPVEYOR_REPO_TAG_NAME-1709 `
|
|
-b microsoft/nanoserver:1709
|