Skip to content

Commit

Permalink
add caching
Browse files Browse the repository at this point in the history
Signed-off-by: Oguz Ozturk <[email protected]>
  • Loading branch information
oguzkaganozt committed May 28, 2024
1 parent 6293ea2 commit 9ddc399
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/actions/docker-build-and-push-openadkit/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,8 @@ runs:
provenance: false
targets: |
${{ inputs.bake-images }}
set: |
${{ inputs.build-args }}
- name: Output artifact URLs
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.artifacts-destination == 'tarball' }}
Expand Down
2 changes: 2 additions & 0 deletions .github/actions/docker-build-and-push/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,8 @@ runs:
provenance: false
targets: |
${{ inputs.bake-images }}
set: |
${{ inputs.build-args }}
- name: Output artifact URLs
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.artifacts-destination == 'tarball' }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ jobs:
*.args.BASE_IMAGE=${{ needs.load-env.outputs[format('{0}', matrix.base_image_env)] }}
*.args.SETUP_ARGS=${{ matrix.setup-args }}
*.args.LIB_DIR=${{ matrix.lib_dir }}
*.args.ARCH=arm64
*.cache-from=type=registry,ref=ghcr.io/${{ github.repository }}:buildcache-${{ matrix.name }}
*.cache-to=type=registry,ref=ghcr.io/${{ github.repository }}:buildcache-${{ matrix.name }},mode=max
tag-suffix: ${{ matrix.additional-tag-suffix }}
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/docker-build-and-push-main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ jobs:
*.args.BASE_IMAGE=${{ needs.load-env.outputs[format('{0}', matrix.base_image_env)] }}
*.args.SETUP_ARGS=${{ matrix.setup-args }}
*.args.LIB_DIR=${{ matrix.lib_dir }}
*.args.ARCH=amd64
*.cache-from=type=registry,ref=ghcr.io/${{ github.repository }}:buildcache-${{ matrix.name }}
*.cache-to=type=registry,ref=ghcr.io/${{ github.repository }}:buildcache-${{ matrix.name }},mode=max
tag-suffix: ${{ matrix.additional-tag-suffix }}
tag-arch: -amd64
tag-prefix: ${{ needs.load-env.outputs.rosdistro }}
Expand All @@ -99,8 +102,6 @@ jobs:
*.args.BASE_IMAGE=${{ needs.load-env.outputs[format('{0}', matrix.base_image_env)] }}
*.args.SETUP_ARGS=${{ matrix.setup-args }}
*.args.LIB_DIR=${{ matrix.lib_dir }}
*.cache-from=type=registry,ref=ghcr.io/${{ github.repository }}:buildcache-${{ matrix.name }}
*.cache-to=type=registry,ref=ghcr.io/${{ github.repository }}:buildcache-${{ matrix.name }},mode=max
*.args.ARCH=amd64
tag-suffix: ${{ matrix.additional-tag-suffix }}
tag-arch: -amd64
Expand Down

0 comments on commit 9ddc399

Please sign in to comment.