Skip to content

Commit

Permalink
Updated build process for Zabbix agent (windows)
Browse files Browse the repository at this point in the history
  • Loading branch information
dotneft committed May 21, 2024
1 parent 5e6d139 commit 6d2dcfc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/base_images_build_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ on:
schedule:
- cron: '0 10 * * 2,5'
workflow_dispatch:
workflow_call:

defaults:
run:
Expand Down Expand Up @@ -323,5 +324,5 @@ jobs:
- name: Cache image digest
uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0
with:
path: ${{ env.BASE_IMAGE_NAME }}_${{ matrix.os }}_${{ matrix.component }}_${{ needs.init_build.outputs.current_branch }}
key: ${{ env.BASE_IMAGE_NAME }}-${{ matrix.os }}
path: ${{ env.BASE_IMAGE_NAME }}_${{ matrix.os }}_${{ matrix.component }}
key: ${{ env.BASE_IMAGE_NAME }}-${{ matrix.os }}-${{ needs.init_build.outputs.current_branch }}
13 changes: 9 additions & 4 deletions .github/workflows/images_build_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,13 @@ jobs:
echo "current_branch=$github_ref" >> $GITHUB_OUTPUT
echo "sha_short=$sha_short" >> $GITHUB_OUTPUT
build_base:
uses: ./.github/workflows/base_images_build_windows.yml
if: ${{ github.event_name == 'release' }}
permissions:
contents: read
id-token: write

build_components:
name: Build ${{ matrix.component }} sources on ${{ matrix.os }}
needs: [ "init_build" ]
Expand Down Expand Up @@ -208,10 +215,8 @@ jobs:
- name: Download SHA256 tag of ${{ env.BASE_IMAGE_NAME }}:${{ matrix.os }}
uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0
with:
path: |
${{ env.BASE_IMAGE_NAME }}_${{ matrix.os }}_${{ matrix.component }}_${{ needs.init_build.outputs.sha_short }}
${{ env.BASE_IMAGE_NAME }}_${{ matrix.os }}_${{ matrix.component }}_${{ needs.init_build.outputs.current_branch }}
key: ${{ env.BASE_IMAGE_NAME }}-${{ matrix.os }}
path: ${{ env.BASE_IMAGE_NAME }}_${{ matrix.os }}_${{ matrix.component }}
key: ${{ env.BASE_IMAGE_NAME }}-${{ matrix.os }}-${{ needs.init_build.outputs.current_branch }}
fail-on-cache-miss: true

- name: Retrieve ${{ env.BASE_IMAGE_NAME }}:${{ matrix.os }} SHA256 tag
Expand Down

0 comments on commit 6d2dcfc

Please sign in to comment.