mirror of
https://github.com/zabbix/zabbix-docker.git
synced 2025-01-07 06:09:20 +01:00
Updated windows workflow according new github recommendations
This commit is contained in:
parent
53af3e092a
commit
cb0765d9c6
20
.github/workflows/images_build_windows.yml
vendored
20
.github/workflows/images_build_windows.yml
vendored
@ -56,7 +56,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
os_list=$(jq -r '.["os-windows"] | keys | [ .[] | tostring ] | @json' "./build.json")
|
os_list=$(jq -r '.["os-windows"] | keys | [ .[] | tostring ] | @json' "./build.json")
|
||||||
|
|
||||||
echo "list=$os_list" >> $GITHUB_OUTPUT
|
echo "list=$os_list" >> $Env:GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Prepare Zabbix component list
|
- name: Prepare Zabbix component list
|
||||||
id: components
|
id: components
|
||||||
@ -64,7 +64,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
component_list='["agent","agent2"]'
|
component_list='["agent","agent2"]'
|
||||||
|
|
||||||
echo "list=$component_list" >> $GITHUB_OUTPUT
|
echo "list=$component_list" >> $Env:GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Get branch info
|
- name: Get branch info
|
||||||
id: branch_info
|
id: branch_info
|
||||||
@ -82,7 +82,7 @@ jobs:
|
|||||||
if [[ "$github_ref" == "${{ env.LATEST_BRANCH }}" ]]; then
|
if [[ "$github_ref" == "${{ env.LATEST_BRANCH }}" ]]; then
|
||||||
result=true
|
result=true
|
||||||
fi
|
fi
|
||||||
echo "is_default_branch=$result" >> $GITHUB_OUTPUT
|
echo "is_default_branch=$result" >> $Env:GITHUB_OUTPUT
|
||||||
|
|
||||||
build_base:
|
build_base:
|
||||||
timeout-minutes: 70
|
timeout-minutes: 70
|
||||||
@ -112,7 +112,7 @@ jobs:
|
|||||||
id: base_os_tag
|
id: base_os_tag
|
||||||
run: |
|
run: |
|
||||||
$os_tag=$(Get-Content -Path .\build.json | ConvertFrom-Json).'os-windows'.'${{ matrix.os }}'
|
$os_tag=$(Get-Content -Path .\build.json | ConvertFrom-Json).'os-windows'.'${{ matrix.os }}'
|
||||||
echo "os_tag=$os_tag" >> $GITHUB_OUTPUT
|
echo "os_tag=$os_tag" >> $Env:GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Generate tags
|
- name: Generate tags
|
||||||
id: meta
|
id: meta
|
||||||
@ -208,7 +208,7 @@ jobs:
|
|||||||
id: base_os_tag
|
id: base_os_tag
|
||||||
run: |
|
run: |
|
||||||
$os_tag=$(Get-Content -Path .\build.json | ConvertFrom-Json).'os-windows'.'${{ matrix.os }}'
|
$os_tag=$(Get-Content -Path .\build.json | ConvertFrom-Json).'os-windows'.'${{ matrix.os }}'
|
||||||
echo "os_tag=$os_tag" >> $GITHUB_OUTPUT
|
echo "os_tag=$os_tag" >> $Env:GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Generate tags
|
- name: Generate tags
|
||||||
id: meta
|
id: meta
|
||||||
@ -235,8 +235,8 @@ jobs:
|
|||||||
$base_tag = Get-Content ${{ env.BASE_BUILD_NAME }}${{ env.BASE_BUILD_ARTIFACT_FILE_SUFFIX }} -Raw
|
$base_tag = Get-Content ${{ env.BASE_BUILD_NAME }}${{ env.BASE_BUILD_ARTIFACT_FILE_SUFFIX }} -Raw
|
||||||
$build_base_image="${{ env.DOCKER_REPOSITORY }}/${{ env.IMAGE_PREFIX }}${{ env.BASE_BUILD_NAME }}@" + $base_tag
|
$build_base_image="${{ env.DOCKER_REPOSITORY }}/${{ env.IMAGE_PREFIX }}${{ env.BASE_BUILD_NAME }}@" + $base_tag
|
||||||
|
|
||||||
echo "base_tag=$base_tag" >> $GITHUB_OUTPUT
|
echo "base_tag=$base_tag" >> $Env:GITHUB_OUTPUT
|
||||||
echo "base_build_image=$build_base_image" >> $GITHUB_OUTPUT
|
echo "base_build_image=$build_base_image" >> $Env:GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Build image
|
- name: Build image
|
||||||
id: docker_build
|
id: docker_build
|
||||||
@ -316,7 +316,7 @@ jobs:
|
|||||||
id: base_os_tag
|
id: base_os_tag
|
||||||
run: |
|
run: |
|
||||||
$os_tag=$(Get-Content -Path .\build.json | ConvertFrom-Json).'os-windows'.'${{ matrix.os }}'
|
$os_tag=$(Get-Content -Path .\build.json | ConvertFrom-Json).'os-windows'.'${{ matrix.os }}'
|
||||||
echo "os_tag=$os_tag" >> $GITHUB_OUTPUT
|
echo "os_tag=$os_tag" >> $Env:GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Generate tags
|
- name: Generate tags
|
||||||
id: meta
|
id: meta
|
||||||
@ -343,8 +343,8 @@ jobs:
|
|||||||
$base_tag = Get-Content ${{ env.COMPONENT_BASE_BUILD_NAME }}${{ env.COMPONENT_BASE_BUILD_ARTIFACT_FILE_SUFFIX }} -Raw
|
$base_tag = Get-Content ${{ env.COMPONENT_BASE_BUILD_NAME }}${{ env.COMPONENT_BASE_BUILD_ARTIFACT_FILE_SUFFIX }} -Raw
|
||||||
$build_base_image="${{ env.DOCKER_REPOSITORY }}/${{ env.IMAGE_PREFIX }}${{ env.COMPONENT_BASE_BUILD_NAME }}@" + $base_tag
|
$build_base_image="${{ env.DOCKER_REPOSITORY }}/${{ env.IMAGE_PREFIX }}${{ env.COMPONENT_BASE_BUILD_NAME }}@" + $base_tag
|
||||||
|
|
||||||
echo "base_tag=$base_tag" >> $GITHUB_OUTPUT
|
echo "base_tag=$base_tag" >> $Env:GITHUB_OUTPUT
|
||||||
echo "base_build_image=$build_base_image" >> $GITHUB_OUTPUT
|
echo "base_build_image=$build_base_image" >> $Env:GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Build image
|
- name: Build image
|
||||||
id: docker_build
|
id: docker_build
|
||||||
|
Loading…
Reference in New Issue
Block a user