Skip to content

Commit

Permalink
ci: add cache-from foundation image
Browse files Browse the repository at this point in the history
  • Loading branch information
adamblake committed Dec 18, 2024
1 parent 134b4f0 commit 30322c7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/build-test-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,9 @@ jobs:
build-args: ${{ inputs.build-args }}
secrets: "github_token=${{ secrets.GITHUB_TOKEN }}"
tags: localhost:${{ inputs.registry-port }}/${{ github.repository_owner }}/${{ inputs.image }}:arm64
cache-from: type=registry,ref=ghcr.io/${{ github.repository_owner }}/${{ inputs.image }}
cache-from: |
type=registry,ref=ghcr.io/${{ github.repository_owner }}/${{ inputs.image }}
${{ inputs.cache-from }}
cache-to: type=registry,ref=localhost:${{ inputs.registry-port }}/${{ github.repository_owner }}/${{ inputs.image }}:buildcache-arm64,mode=max
no-cache: ${{ inputs.no-cache }}
push: true
Expand All @@ -169,7 +171,9 @@ jobs:
build-args: ${{ inputs.build-args }}
secrets: "github_token=${{ secrets.GITHUB_TOKEN }}"
tags: localhost:${{ inputs.registry-port }}/${{ github.repository_owner }}/${{ inputs.image }}:amd64
cache-from: type=registry,ref=ghcr.io/${{ github.repository_owner }}/${{ inputs.image }}
cache-from: |
type=registry,ref=ghcr.io/${{ github.repository_owner }}/${{ inputs.image }}
${{ inputs.cache-from }}
cache-to: type=registry,ref=localhost:${{ inputs.registry-port }}/${{ github.repository_owner }}/${{ inputs.image }}:buildcache-amd64,mode=max
no-cache: ${{ inputs.no-cache }}
push: true
Expand Down

0 comments on commit 30322c7

Please sign in to comment.