New build design

This commit is contained in:
Alexey Pustovalov 2021-10-08 12:27:10 +02:00
parent 3e2becb70d
commit 891e70aa43

View File

@ -13,7 +13,7 @@ on:
defaults:
run:
shell: powershell
shell: pwsh
env:
DOCKER_REPOSITORY: "zabbix"
@ -47,6 +47,7 @@ jobs:
id: os
run: |
os_list=$(jq -r '.os | keys | [ .[] | tostring ] | @json' "./build.json")
os_list='windows'
echo "::set-output name=list::$os_list"
@ -54,6 +55,7 @@ jobs:
id: platform_list
run: |
platform_list=$(jq -r '.os | tostring | @json' "./build.json")
platform_list='amd64'
echo "::set-output name=list::$platform_list"
@ -61,6 +63,7 @@ jobs:
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"
@ -68,6 +71,7 @@ jobs:
id: components
run: |
component_list=$(jq -r '.components | keys | [ .[] | tostring ] | @json' "./build.json")
component_list='agent,agent2'
echo "::set-output name=list::$component_list"
@ -91,12 +95,6 @@ jobs:
with:
fetch-depth: 1
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
@ -107,6 +105,7 @@ jobs:
id: platform
run: |
platform_list=$(jq -r '.os.${{ matrix.os }} | join(",")' "./build.json")
platform_list='amd64'
echo ::set-output name=list::$platform_list