Skip to content
Closed
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions .github/workflows/ghostv5.yml
Original file line number Diff line number Diff line change
Expand Up @@ -193,12 +193,15 @@ jobs:
# linux/arm/v8
# linux/arm/v7
push: true
# The order for <docker push -tag> matters for our CD down the line
tags: |
${{ needs.myvars.outputs.TAG_DKR_BRANCH_NAME }}
${{ needs.myvars.outputs.TAG_GPR_BRANCH_NAME }}
# The order for <docker push -tag> matters for our CD down the line
cache-from: type=gha, scope=${{ github.workflow }}
cache-to: type=gha, scope=${{ github.workflow }}, mode=max
# This configuration intentionally uses the SAME cache reference for both jobs.
# The goal is for the 'stable' build (triggered by a tag) to reuse the
# layers already created by the 'edge' build on the master branch.
cache-from: type=registry,ref=${{ needs.myvars.outputs.GPR_PREFIX }}:buildcache-${{ env.SUB_DIR }}
cache-to: type=registry,ref=${{ needs.myvars.outputs.GPR_PREFIX }}:buildcache-${{ env.SUB_DIR }},mode=max
build-args: |
BUILDKIT_PROGRESS=plain
network: host
Expand Down Expand Up @@ -278,6 +281,7 @@ jobs:
# linux/arm/v8
# linux/arm/v7
push: true
# The order for <docker push -tag> matters for our CD down the line
tags: |
${{ needs.myvars.outputs.TAG_DKR_VERSION }}
${{ needs.myvars.outputs.TAG_DKR_BRANCH_NAME }}
Expand All @@ -287,9 +291,8 @@ jobs:
${{ needs.myvars.outputs.TAG_GPR_BRANCH_NAME }}
${{ needs.myvars.outputs.TAG_GPR_VERSION_HASH_ONLY }}
${{ needs.myvars.outputs.TAG_GPR_VERSION_HASH_DATE }}
# The order for <docker push -tag> matters for our CD down the line
cache-from: type=gha, scope=${{ github.workflow }}
cache-to: type=gha, scope=${{ github.workflow }}, mode=max
cache-from: type=registry,ref=${{ needs.myvars.outputs.GPR_PREFIX }}:buildcache-${{ env.SUB_DIR }}
cache-to: type=registry,ref=${{ needs.myvars.outputs.GPR_PREFIX }}:buildcache-${{ env.SUB_DIR }},mode=max
build-args: |
BUILDKIT_PROGRESS=plain
network: host
Expand Down
Loading