File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,10 +2,12 @@ FROM golang:1.8-nanoserver
22
33SHELL ["powershell" , "-Command" , "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';" ]
44
5- ENV GIT_VERSION 2.11 .0
5+ ENV GIT_VERSION 2.12 .0
66ENV GIT_DOWNLOAD_URL https://github.com/git-for-windows/git/releases/download/v${GIT_VERSION}.windows.1/MinGit-${GIT_VERSION}-64-bit.zip
7+ ENV GIT_SHA256 6238f65c4d8412b993cb092efde4954f8cb7da4def54d0c1533835f00e83fdad
78
89RUN Invoke-WebRequest -UseBasicParsing $env:GIT_DOWNLOAD_URL -OutFile git.zip; \
10+ if ((Get-FileHash git.zip -Algorithm sha256).Hash -ne $env:GIT_SHA256) {exit 1} ; \
911 Expand-Archive git.zip -DestinationPath C:\g it; \
1012 Remove-Item git.zip; \
1113 Write-Host 'Updating PATH ...' ; \
Original file line number Diff line number Diff line change 11docker build -t golang .
22if %errorlevel% neq 0 exit /b %errorlevel%
3- docker tag golang:latest golang:1.8beta2
3+ docker tag golang:latest golang:1.8
Original file line number Diff line number Diff line change 1- docker tag golang:1.8beta2 stefanscherer/golang-windows:1.8beta2
2- docker tag golang:1.8beta2 stefanscherer/golang-windows
3- docker push stefanscherer/golang-windows:1.8beta2
1+ docker tag golang:1.8 stefanscherer/golang-windows:1.8
2+ docker tag golang:1.8 stefanscherer/golang-windows
3+ docker push stefanscherer/golang-windows:1.8
44docker push stefanscherer/golang-windows
You can’t perform that action at this time.
0 commit comments