Skip to content

Commit

Permalink
Merge pull request #2 from cash-track/chore/upgrade
Browse files Browse the repository at this point in the history
Add attestation support
  • Loading branch information
vokomarov authored Nov 15, 2024
2 parents 9174923 + cdc0e20 commit 072ab78
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
types: [ published ]

env:
REGISTRY: docker.io
REPO: cashtrack/redis

jobs:
Expand All @@ -14,6 +15,8 @@ jobs:
permissions:
contents: read
packages: write
id-token: write
attestations: write

steps:
- name: Checkout repository
Expand Down Expand Up @@ -53,8 +56,17 @@ jobs:
# https://github.com/docker/build-push-action
- name: Build and push
uses: docker/build-push-action@v6
id: push
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

- name: Attest
uses: actions/attest-build-provenance@v1
id: attest
with:
subject-name: ${{ env.REGISTRY }}/${{ env.REPO }}
subject-digest: ${{ steps.push.outputs.digest }}
push-to-registry: true

0 comments on commit 072ab78

Please sign in to comment.