mirror of
https://github.com/zabbix/zabbix-docker.git
synced 2025-04-14 22:38:38 +02:00
New build design
This commit is contained in:
parent
549a36c631
commit
e20026a8ae
37
.github/workflows/images_build_windows.yml
vendored
37
.github/workflows/images_build_windows.yml
vendored
@ -26,7 +26,6 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
outputs:
|
outputs:
|
||||||
os: ${{ steps.os.outputs.list }}
|
os: ${{ steps.os.outputs.list }}
|
||||||
database: ${{ steps.database.outputs.list }}
|
|
||||||
components: ${{ steps.components.outputs.list }}
|
components: ${{ steps.components.outputs.list }}
|
||||||
is_default_branch: ${{ steps.branch_info.outputs.is_default }}
|
is_default_branch: ${{ steps.branch_info.outputs.is_default }}
|
||||||
steps:
|
steps:
|
||||||
@ -45,32 +44,14 @@ jobs:
|
|||||||
- name: Prepare Operating System list
|
- name: Prepare Operating System list
|
||||||
id: os
|
id: os
|
||||||
run: |
|
run: |
|
||||||
$os_list=$(jq -r '.os | keys | [ .[] | tostring ] | @json' "./build.json")
|
$os_list='["windows"]'
|
||||||
$os_list='windows'
|
|
||||||
|
|
||||||
echo "::set-output name=list::$os_list"
|
echo "::set-output name=list::$os_list"
|
||||||
|
|
||||||
- name: Prepare Platform list
|
|
||||||
id: platform_list
|
|
||||||
run: |
|
|
||||||
$platform_list=$(jq -r '.os | tostring | @json' "./build.json")
|
|
||||||
$platform_list='amd64'
|
|
||||||
|
|
||||||
echo "::set-output name=list::$platform_list"
|
|
||||||
|
|
||||||
- name: Prepare Database engine list
|
|
||||||
id: database
|
|
||||||
run: |
|
|
||||||
$database_list=$(jq -r '[.components | values[] ] | sort | unique | del(.. | select ( . == "" ) ) | [ .[] | tostring ] | @json' "./build.json")
|
|
||||||
$database_list=''
|
|
||||||
|
|
||||||
echo "::set-output name=list::$database_list"
|
|
||||||
|
|
||||||
- name: Prepare Zabbix component list
|
- name: Prepare Zabbix component list
|
||||||
id: components
|
id: components
|
||||||
run: |
|
run: |
|
||||||
$component_list=$(jq -r '.components | keys | [ .[] | tostring ] | @json' "./build.json")
|
$component_list='["agent","agent2"]'
|
||||||
$component_list='agent,agent2'
|
|
||||||
|
|
||||||
echo "::set-output name=list::$component_list"
|
echo "::set-output name=list::$component_list"
|
||||||
|
|
||||||
@ -86,6 +67,7 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
os: ${{ fromJson(needs.init_build.outputs.os) }}
|
os: ${{ fromJson(needs.init_build.outputs.os) }}
|
||||||
|
build: ${{ fromJson(needs.init_build.outputs.components) }}
|
||||||
|
|
||||||
runs-on: windows-2022
|
runs-on: windows-2022
|
||||||
steps:
|
steps:
|
||||||
@ -100,14 +82,6 @@ jobs:
|
|||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
|
|
||||||
- name: Prepare Platform list
|
|
||||||
id: platform
|
|
||||||
run: |
|
|
||||||
$platform_list=$(jq -r '.os.${{ matrix.os }} | join(",")' "./build.json")
|
|
||||||
$platform_list='amd64'
|
|
||||||
|
|
||||||
echo ::set-output name=list::$platform_list
|
|
||||||
|
|
||||||
- name: Generate tags
|
- name: Generate tags
|
||||||
id: meta
|
id: meta
|
||||||
uses: docker/metadata-action@v3
|
uses: docker/metadata-action@v3
|
||||||
@ -119,13 +93,12 @@ jobs:
|
|||||||
flavor: |
|
flavor: |
|
||||||
latest=false
|
latest=false
|
||||||
|
|
||||||
- name: Build ${{ env.BASE_BUILD_NAME }}/${{ matrix.os }} and push
|
- name: Build ${{ env.BASE_BUILD_NAME }}/${{ matrix.build }}-${{ matrix.os }} and push
|
||||||
id: docker_build
|
id: docker_build
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
with:
|
with:
|
||||||
context: ./Dockerfiles/${{ env.BASE_BUILD_NAME }}/${{ matrix.os }}
|
context: ./Dockerfiles/${{ env.BASE_BUILD_NAME }}/${{ matrix.os }}
|
||||||
file: ./Dockerfiles/${{ env.BASE_BUILD_NAME }}/${{ matrix.os }}/Dockerfile
|
file: ./Dockerfiles/${{ env.BASE_BUILD_NAME }}/${{ matrix.os }}/Dockerfile.${{ matrix.build }}
|
||||||
platforms: ${{ steps.platform.outputs.list }}
|
|
||||||
push: false
|
push: false
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
labels: |
|
labels: |
|
||||||
|
Loading…
Reference in New Issue
Block a user