Skip to content

Commit

Permalink
Build windows 1809 images
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaslorentz committed Jan 26, 2020
1 parent b202164 commit c2a772f
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile-nanoserver-1803
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM microsoft/nanoserver:1803
FROM mcr.microsoft.com/windows/nanoserver:1803
LABEL maintainer "Lucas Lorentz <lucaslorentzlara@hotmail.com>"

EXPOSE 80 443 2015
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile-nanoserver-1809
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM microsoft/nanoserver:1809
FROM mcr.microsoft.com/windows/nanoserver:1809
LABEL maintainer "Lucas Lorentz <lucaslorentzlara@hotmail.com>"

EXPOSE 80 443 2015
Expand Down
2 changes: 1 addition & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
- job: Build_Images_Windows
dependsOn: Build_Binaries
pool:
vmImage: 'win1803'
vmImage: 'windows-2019'
steps:
- task: DownloadBuildArtifacts@0
displayName: 'Download Build Artifacts'
Expand Down
9 changes: 9 additions & 0 deletions push-images-windows.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ docker login -u lucaslorentz -p "$DOCKER_PASSWORD"
if [[ "${BUILD_SOURCEBRANCH}" == "refs/heads/master" ]]; then
echo "Pushing CI images"
docker push lucaslorentz/caddy-docker-proxy:ci-nanoserver-1803
docker push lucaslorentz/caddy-docker-proxy:ci-nanoserver-1809
fi

if [[ "${RELEASE_VERSION}" =~ ^v[0-9]+\.[0-9]+\.[0-9]+(-.*)?$ ]]; then
Expand All @@ -24,4 +25,12 @@ if [[ "${RELEASE_VERSION}" =~ ^v[0-9]+\.[0-9]+\.[0-9]+(-.*)?$ ]]; then
docker push lucaslorentz/caddy-docker-proxy:nanoserver-1803
docker push lucaslorentz/caddy-docker-proxy:${PATCH_VERSION}-nanoserver-1803
docker push lucaslorentz/caddy-docker-proxy:${MINOR_VERSION}-nanoserver-1803

# nanoserver-1809
docker tag lucaslorentz/caddy-docker-proxy:ci-nanoserver-1809 lucaslorentz/caddy-docker-proxy:nanoserver-1809
docker tag lucaslorentz/caddy-docker-proxy:ci-nanoserver-1809 lucaslorentz/caddy-docker-proxy:${PATCH_VERSION}-nanoserver-1809
docker tag lucaslorentz/caddy-docker-proxy:ci-nanoserver-1809 lucaslorentz/caddy-docker-proxy:${MINOR_VERSION}-nanoserver-1809
docker push lucaslorentz/caddy-docker-proxy:nanoserver-1809
docker push lucaslorentz/caddy-docker-proxy:${PATCH_VERSION}-nanoserver-1809
docker push lucaslorentz/caddy-docker-proxy:${MINOR_VERSION}-nanoserver-1809
fi

0 comments on commit c2a772f

Please sign in to comment.