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 7a6d306 commit c8c7425
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ on:

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

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

0 comments on commit c8c7425

Please sign in to comment.