Updated build script

This commit is contained in:
Alexey Pustovalov 2021-10-08 16:58:11 +02:00
parent 64c484ab3d
commit c5cc9be0ba
2 changed files with 3 additions and 7 deletions

View File

@ -77,12 +77,6 @@ jobs:
with:
fetch-depth: 1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Generate tags
id: meta
uses: docker/metadata-action@v3
@ -105,7 +99,8 @@ jobs:
echo "docker build --file=.\Dockerfiles\${{ env.BASE_BUILD_NAME }}\windows\Dockerfile.${{ matrix.build }} $tags .\Dockerfiles\${{ env.BASE_BUILD_NAME }}\windows\"
docker build --file=.\Dockerfiles\${{ env.BASE_BUILD_NAME }}\windows\Dockerfile.${{ matrix.build }} $tags .\Dockerfiles\${{ env.BASE_BUILD_NAME }}\windows\
docker push image push --all-tags $tags_array[0]
echo "docker push image push --all-tags $tags_array[0]"
docker image push --all-tags $tags_array[0]
docker logout
$digest=$(docker inspect $tags_array[0] --format "{{.Id}}")

View File

@ -114,6 +114,7 @@ RUN Set-Location -Path $env:SystemDrive\.; `
`
Write-Host ('Downloading {0} ...' -f $env:MINGW_URL); `
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; `
[System.Net.ServicePointManager]::ServerCertificateValidationCallback = { $true }; `
Invoke-WebRequest -OutFile $env:SystemDrive\mingw.7z -Uri $env:MINGW_URL; `
`
$sha256 = 'e8c65ddc655534b0330f66f7b480565621e8617cda9937d76ba141a22bf3b2fa'; `