mirror of
https://github.com/zabbix/zabbix-docker.git
synced 2025-06-20 01:47:43 +02:00
Updated build script
This commit is contained in:
parent
21742c7d73
commit
2d0414f5cb
14
.github/workflows/images_build_windows.yml
vendored
14
.github/workflows/images_build_windows.yml
vendored
@ -94,15 +94,22 @@ jobs:
|
|||||||
$tags=$($tags_array | Foreach-Object { "--tag=$_" })
|
$tags=$($tags_array | Foreach-Object { "--tag=$_" })
|
||||||
|
|
||||||
docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
|
docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
|
||||||
|
if (-not $?) {throw "Failed"}
|
||||||
|
|
||||||
echo "docker build --file=.\Dockerfiles\${{ env.BASE_BUILD_NAME }}\windows\Dockerfile.${{ matrix.build }} $tags .\Dockerfiles\${{ env.BASE_BUILD_NAME }}\windows\"
|
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 build --file=.\Dockerfiles\${{ env.BASE_BUILD_NAME }}\windows\Dockerfile.${{ matrix.build }} $tags .\Dockerfiles\${{ env.BASE_BUILD_NAME }}\windows\
|
||||||
|
if (-not $?) {throw "Failed"}
|
||||||
|
|
||||||
echo "docker push image push --all-tags $tags_array[0]"
|
Foreach ($tag in $test2) {
|
||||||
docker image push --all-tags $tags_array[0]
|
echo "docker push image push --all-tags $tag"
|
||||||
|
docker image push $tag
|
||||||
|
if (-not $?) {throw "Failed"}
|
||||||
|
}
|
||||||
docker logout
|
docker logout
|
||||||
|
if (-not $?) {throw "Failed"}
|
||||||
|
|
||||||
$digest=$(docker inspect $tags_array[0] --format "{{.Id}}")
|
$digest=$(docker inspect $tags_array[0] --format "{{.Id}}")
|
||||||
|
if (-not $?) {throw "Failed"}
|
||||||
echo $digest
|
echo $digest
|
||||||
echo "$digest" > ${{ env.BASE_BUILD_NAME }}_${{ matrix.os }}_${{ matrix.build }}
|
echo "$digest" > ${{ env.BASE_BUILD_NAME }}_${{ matrix.os }}_${{ matrix.build }}
|
||||||
|
|
||||||
@ -120,7 +127,7 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
build: ${{ fromJson(needs.init_build.outputs.database) }}
|
build: ${{ fromJson(needs.init_build.outputs.components) }}
|
||||||
os: ${{ fromJson(needs.init_build.outputs.os) }}
|
os: ${{ fromJson(needs.init_build.outputs.os) }}
|
||||||
|
|
||||||
runs-on: windows-2022
|
runs-on: windows-2022
|
||||||
@ -179,7 +186,6 @@ jobs:
|
|||||||
docker build --build-arg=BUILD_BASE_IMAGE=${{ steps.base_build.outputs.base_build_image }} --file=.\Dockerfiles\build-mysql\windows\Dockerfile.${{ matrix.build }} $tags .\Dockerfiles\build-mysql\windows\
|
docker build --build-arg=BUILD_BASE_IMAGE=${{ steps.base_build.outputs.base_build_image }} --file=.\Dockerfiles\build-mysql\windows\Dockerfile.${{ matrix.build }} $tags .\Dockerfiles\build-mysql\windows\
|
||||||
if (-not $?) {throw "Failed"}
|
if (-not $?) {throw "Failed"}
|
||||||
|
|
||||||
echo "docker push image push --all-tags $tags_list"
|
|
||||||
Foreach ($tag in $test2) {
|
Foreach ($tag in $test2) {
|
||||||
docker image push $tag
|
docker image push $tag
|
||||||
if (-not $?) {throw "Failed"}
|
if (-not $?) {throw "Failed"}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user