mirror of
https://github.com/zabbix/zabbix-docker.git
synced 2025-01-11 16:18:52 +01:00
Updated build script
This commit is contained in:
parent
f87562ca69
commit
ee3a0537d1
4
.github/workflows/images_build_windows.yml
vendored
4
.github/workflows/images_build_windows.yml
vendored
@ -61,7 +61,7 @@ jobs:
|
|||||||
|
|
||||||
build_base:
|
build_base:
|
||||||
timeout-minutes: 70
|
timeout-minutes: 70
|
||||||
name: Build base on ${{ matrix.os }}
|
name: Build ${{ matrix.build }} base on ${{ matrix.os }}
|
||||||
needs: init_build
|
needs: init_build
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
@ -96,7 +96,7 @@ jobs:
|
|||||||
- name: Build ${{ env.BASE_BUILD_NAME }}/${{ matrix.build }}-${{ matrix.os }} and push
|
- name: Build ${{ env.BASE_BUILD_NAME }}/${{ matrix.build }}-${{ matrix.os }} and push
|
||||||
id: docker_build
|
id: docker_build
|
||||||
run: |
|
run: |
|
||||||
$tags=$(echo '${{ steps.meta.outputs.tags }}' | jq -r '. | map("""--tag=""" + .) | join(""" """)')
|
$tags=$(echo '${{ fromJson(steps.meta.outputs.tags) }}' | jq -r '. | map("""--tag=""" + .) | join(""" """)')
|
||||||
docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
|
docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
|
||||||
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 ${{ steps.meta.outputs.tags[0] }}
|
docker push image push --all-tags ${{ steps.meta.outputs.tags[0] }}
|
||||||
|
Loading…
Reference in New Issue
Block a user