Skip to content

Commit

Permalink
Leverage GitHub Actions caching and remove the unnecessary pull opt…
Browse files Browse the repository at this point in the history
…ion (#554)

* Remove unnecessary 'pull' option from Docker workflow configuration

Signed-off-by: Jürgen Kreileder <[email protected]>

* Add caching options to Docker workflow for improved build performance

Signed-off-by: Jürgen Kreileder <[email protected]>

---------

Signed-off-by: Jürgen Kreileder <[email protected]>
  • Loading branch information
jkreileder authored Oct 17, 2024
1 parent 84d049e commit a2c6980
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -121,13 +121,14 @@ jobs:
with:
context: .
platforms: ${{ github.event_name != 'pull_request' && github.actor != 'dependabot[bot]' && 'linux/amd64,linux/arm64' || '' }}
pull: true
push: ${{ github.event_name != 'pull_request' && github.actor != 'dependabot[bot]' }}
load: ${{ github.event_name == 'pull_request' || github.actor == 'dependabot[bot]' }}
sbom: ${{ github.event_name != 'pull_request' && github.actor != 'dependabot[bot]' && 'generator=docker/scout-sbom-indexer:1.14.1@sha256:3e225c7cd33fb08121f4a633fa2b4cc51e7ec2be9a9273f7d7836e7a4a9816de' || '' }}
tags: ${{ steps.docker-meta.outputs.tags }}
labels: ${{ steps.docker-meta.outputs.labels }}
annotations: ${{ steps.docker-meta.outputs.annotations }}
cache-from: type=gha
cache-to: type=gha,mode=max

- name: Generate SBOM
if: ${{ github.event_name != 'pull_request' && github.actor != 'dependabot[bot]' }}
Expand Down

0 comments on commit a2c6980

Please sign in to comment.