Skip to content

Commit

Permalink
Merge pull request #4 from tideways/gha-cache
Browse files Browse the repository at this point in the history
Enable caching in GitHub Actions
  • Loading branch information
TimWolla authored May 16, 2024
2 parents 93f85de + 3a070ae commit c5dda8e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/daemon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ jobs:
push: ${{ github.event_name != 'pull_request' }}
tags: ghcr.io/${{ env.organization }}/${{ env.image }}:latest,ghcr.io/${{ env.organization }}/${{ env.image }}:${{ steps.extract_version.outputs.version }}
platforms: linux/amd64,linux/arm64
cache-from: type=gha
cache-to: type=gha,mode=max

- uses: actions/attest-build-provenance@v1
if: ${{ github.event_name != 'pull_request' }}
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ jobs:
push: ${{ github.event_name != 'pull_request' }}
tags: ghcr.io/${{ env.organization }}/${{ env.image }}:latest,ghcr.io/${{ env.organization }}/${{ env.image }}:${{ steps.extract_version.outputs.version }}
platforms: linux/amd64,linux/arm64
cache-from: type=gha
cache-to: type=gha,mode=max

- uses: actions/attest-build-provenance@v1
if: ${{ github.event_name != 'pull_request' }}
Expand Down Expand Up @@ -84,6 +86,8 @@ jobs:
push: ${{ github.event_name != 'pull_request' }}
tags: ghcr.io/${{ env.organization }}/${{ env.image }}:alpine,ghcr.io/${{ env.organization }}/${{ env.image }}:${{ steps.extract_version.outputs.version }}-alpine
platforms: linux/amd64,linux/arm64
cache-from: type=gha
cache-to: type=gha,mode=max

- uses: actions/attest-build-provenance@v1
if: ${{ github.event_name != 'pull_request' }}
Expand Down

0 comments on commit c5dda8e

Please sign in to comment.