mirror of
https://github.com/zabbix/zabbix-docker.git
synced 2025-05-31 15:16:13 +02:00
Prepare universal workflow
This commit is contained in:
parent
19082aad50
commit
1fe35722ac
18
.github/workflows/images_build_windows.yml
vendored
18
.github/workflows/images_build_windows.yml
vendored
@ -82,6 +82,10 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
os_list=$(jq -r '.["os-windows"] | keys | [ .[] | tostring ] | @json' "$MATRIX_FILE")
|
os_list=$(jq -r '.["os-windows"] | keys | [ .[] | tostring ] | @json' "$MATRIX_FILE")
|
||||||
|
|
||||||
|
echo "::group::Operating System List"
|
||||||
|
echo "$os_list"
|
||||||
|
echo "::endgroup::"
|
||||||
|
|
||||||
echo "list=$os_list" >> $GITHUB_OUTPUT
|
echo "list=$os_list" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Prepare Zabbix component list
|
- name: Prepare Zabbix component list
|
||||||
@ -90,6 +94,10 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
component_list='["agent","agent2"]'
|
component_list='["agent","agent2"]'
|
||||||
|
|
||||||
|
echo "::group::Operating System List"
|
||||||
|
echo "$component_list"
|
||||||
|
echo "::endgroup::"
|
||||||
|
|
||||||
echo "list=$component_list" >> $GITHUB_OUTPUT
|
echo "list=$component_list" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Get branch info
|
- name: Get branch info
|
||||||
@ -100,6 +108,7 @@ jobs:
|
|||||||
github_ref: ${{ github.ref }}
|
github_ref: ${{ github.ref }}
|
||||||
run: |
|
run: |
|
||||||
result=false
|
result=false
|
||||||
|
sha_short=$(git rev-parse --short HEAD)
|
||||||
|
|
||||||
if [[ "$github_ref" == "refs/tags/"* ]]; then
|
if [[ "$github_ref" == "refs/tags/"* ]]; then
|
||||||
github_ref=${github_ref%.*}
|
github_ref=${github_ref%.*}
|
||||||
@ -110,9 +119,16 @@ jobs:
|
|||||||
if [[ "$github_ref" == "$LATEST_BRANCH" ]]; then
|
if [[ "$github_ref" == "$LATEST_BRANCH" ]]; then
|
||||||
result=true
|
result=true
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo "::group::Branch data"
|
||||||
|
echo "is_default_branch - $result"
|
||||||
|
echo "current_branch - $github_ref"
|
||||||
|
echo "sha_short - $sha_short"
|
||||||
|
echo "::endgroup::"
|
||||||
|
|
||||||
echo "is_default_branch=$result" >> $GITHUB_OUTPUT
|
echo "is_default_branch=$result" >> $GITHUB_OUTPUT
|
||||||
echo "current_branch=$github_ref" >> $GITHUB_OUTPUT
|
echo "current_branch=$github_ref" >> $GITHUB_OUTPUT
|
||||||
echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
|
echo "sha_short=$sha_short" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
build_base:
|
build_base:
|
||||||
timeout-minutes: 70
|
timeout-minutes: 70
|
||||||
|
Loading…
x
Reference in New Issue
Block a user