mirror of
https://github.com/zabbix/zabbix-docker.git
synced 2025-04-15 06:48:37 +02:00
Updated build script
This commit is contained in:
parent
922ea12f6c
commit
f87562ca69
8
.github/workflows/images_build_windows.yml
vendored
8
.github/workflows/images_build_windows.yml
vendored
@ -44,7 +44,7 @@ jobs:
|
|||||||
- name: Prepare Operating System list
|
- name: Prepare Operating System list
|
||||||
id: os
|
id: os
|
||||||
run: |
|
run: |
|
||||||
$os_list='["windows"]'
|
$os_list='["ltsc2022"]'
|
||||||
|
|
||||||
echo "::set-output name=list::$os_list"
|
echo "::set-output name=list::$os_list"
|
||||||
|
|
||||||
@ -96,7 +96,11 @@ 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: |
|
||||||
docker build -f .\Dockerfiles\${{ env.BASE_BUILD_NAME }}\${{ matrix.os }}\Dockerfile.${{ matrix.build }} .\Dockerfiles\${{ env.BASE_BUILD_NAME }}\${{ matrix.os }}\
|
$tags=$(echo '${{ steps.meta.outputs.tags }}' | jq -r '. | map("""--tag=""" + .) | join(""" """)')
|
||||||
|
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 push image push --all-tags ${{ steps.meta.outputs.tags[0] }}
|
||||||
|
docker logout
|
||||||
|
|
||||||
- name: Image digest
|
- name: Image digest
|
||||||
run: |
|
run: |
|
||||||
|
Loading…
Reference in New Issue
Block a user