mirror of
https://github.com/zabbix/zabbix-docker.git
synced 2024-11-25 17:23:48 +01:00
Updated build script
This commit is contained in:
parent
e208124b28
commit
4e00f429a3
12
.github/workflows/images_build_windows.yml
vendored
12
.github/workflows/images_build_windows.yml
vendored
@ -39,13 +39,16 @@ jobs:
|
||||
|
||||
- name: Check build.json file
|
||||
id: build_exists
|
||||
shell: bash
|
||||
run: |
|
||||
if (-not(Test-Path -Path "./build.json" -PathType Leaf)) {
|
||||
throw "::error::File build.json is missing"
|
||||
}
|
||||
if [[ ! -f "./build.json" ]]; then
|
||||
echo "::error::File build.json is missing"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
- name: Prepare Operating System list
|
||||
id: os
|
||||
shell: bash
|
||||
run: |
|
||||
os_list=$(jq -r '.["os-windows"] | keys | [ .[] | tostring ] | @json' "./build.json")
|
||||
|
||||
@ -53,8 +56,9 @@ jobs:
|
||||
|
||||
- name: Prepare Zabbix component list
|
||||
id: components
|
||||
shell: bash
|
||||
run: |
|
||||
$component_list='["agent","agent2"]'
|
||||
component_list='["agent","agent2"]'
|
||||
|
||||
echo "::set-output name=list::$component_list"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user