Skip to content

Commit

Permalink
another fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wael-sadek committed Oct 3, 2024
1 parent c8c7425 commit a00b683
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}

jobs:
build-and-push-image:
Expand All @@ -29,7 +30,7 @@ jobs:
- name: Extract metadata (tags, labels) for Docker
id: meta
run: |
echo "tag=${{ env.REGISTRY }}/tofutf:$(head -1 tofutf | cut -d: -f2)" >> "$GITHUB_OUTPUT"
echo "tag=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}/tofutf:$(head -1 tofutf | cut -d: -f2)" >> "$GITHUB_OUTPUT"
- name: Build and push Docker image
id: push
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
Expand All @@ -43,6 +44,6 @@ jobs:
- name: Generate artifact attestation
uses: actions/attest-build-provenance@v1
with:
subject-name: ${{ env.REGISTRY }}/tofutf
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}/tofutf
subject-digest: ${{ steps.push.outputs.digest }}
push-to-registry: true

0 comments on commit a00b683

Please sign in to comment.