Updated Linux workflow
This commit is contained in:
parent
a91a147420
commit
a439cdb47a
18
.github/workflows/images_build.yml
vendored
18
.github/workflows/images_build.yml
vendored
|
|
@ -406,7 +406,7 @@ jobs:
|
|||
|
||||
printf '%s' "${METADATA}" > "$CACHE_FILE_NAME"
|
||||
|
||||
- name: Cache image metadata
|
||||
- name: Upload artifact metadata
|
||||
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
|
||||
with:
|
||||
path: ${{ env.BASE_CACHE_FILE_NAME }}
|
||||
|
|
@ -519,7 +519,7 @@ jobs:
|
|||
flavor: |
|
||||
latest=${{ matrix.os == 'alpine' && !contains(fromJSON('["workflow_dispatch"]'), github.event_name) && needs.init_build.outputs.is_default_branch == 'true' }}
|
||||
|
||||
- name: Download metadata of ${{ env.BASE_BUILD_NAME }}:${{ matrix.os }}
|
||||
- name: Download artifact metadata of ${{ env.BASE_BUILD_NAME }}:${{ matrix.os }}
|
||||
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
||||
with:
|
||||
name: ${{ env.BASE_BUILD_NAME }}-${{ matrix.os }}-${{ github.run_id }}
|
||||
|
|
@ -529,7 +529,6 @@ jobs:
|
|||
env:
|
||||
CACHE_FILE_NAME: ${{ env.BASE_CACHE_FILE_NAME }}
|
||||
run: |
|
||||
ls -lah ./
|
||||
[[ -f "$CACHE_FILE_NAME" ]] || { echo "::error::Missing metadata file: $CACHE_FILE_NAME"; exit 1; }
|
||||
|
||||
echo "::group::Base image metadata"
|
||||
|
|
@ -630,11 +629,11 @@ jobs:
|
|||
|
||||
printf '%s' "${METADATA}" > "$CACHE_FILE_NAME"
|
||||
|
||||
- name: Cache image metadata
|
||||
uses: actions/cache/save@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
|
||||
- name: Upload artifact metadata
|
||||
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
|
||||
with:
|
||||
path: ${{ env.BUILD_CACHE_FILE_NAME }}
|
||||
key: ${{ matrix.build }}-${{ matrix.os }}-${{ github.run_id }}
|
||||
name: ${{ matrix.build }}-${{ matrix.os }}-${{ github.run_id }}
|
||||
|
||||
build_images:
|
||||
timeout-minutes: 90
|
||||
|
|
@ -848,12 +847,11 @@ jobs:
|
|||
flavor: |
|
||||
latest=${{ matrix.os == 'alpine' && !contains(fromJSON('["workflow_dispatch"]'), github.event_name) && needs.init_build.outputs.is_default_branch == 'true' }}
|
||||
|
||||
- name: Download metadata of ${{ steps.build_base_image.outputs.build_base }}:${{ matrix.os }}
|
||||
- name: Download artifact metadata of ${{ steps.build_base_image.outputs.build_base }}:${{ matrix.os }}
|
||||
if: ${{ matrix.build != 'snmptraps' }}
|
||||
uses: actions/cache/restore@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
|
||||
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
||||
with:
|
||||
path: ${{ env.BUILD_CACHE_FILE_NAME }}
|
||||
key: ${{ steps.build_base_image.outputs.build_base }}-${{ matrix.os }}-${{ github.run_id }}
|
||||
name: ${{ steps.build_base_image.outputs.build_base }}-${{ matrix.os }}-${{ github.run_id }}
|
||||
|
||||
- name: Process ${{ steps.build_base_image.outputs.build_base }}:${{ matrix.os }} image metadata
|
||||
id: base_build
|
||||
|
|
|
|||
Loading…
Reference in a new issue