Skip to content

Commit

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

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

jobs:
build-and-push-image:
Expand All @@ -30,20 +30,20 @@ jobs:
- name: Extract metadata (tags, labels) for Docker
id: meta
run: |
echo "tag=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}/tofutf:$(head -1 tofutf | cut -d: -f2)" >> "$GITHUB_OUTPUT"
echo "tag=$(head -1 tofutf | cut -d: -f2)" >> "$GITHUB_OUTPUT"
- name: Build and push Docker image
id: push
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
with:
context: .
file: tofutf
push: true
tags: ${{ steps.meta.outputs.tag }}
tags: ${{ env.REGISTRY }}/${{ env.REPO_NAME }}/tofutf:${{ steps.meta.outputs.tag }}

# This step generates an artifact attestation for the image, which is an unforgeable statement about where and how it was built. It increases supply chain security for people who consume the image. For more information, see "[AUTOTITLE](/actions/security-guides/using-artifact-attestations-to-establish-provenance-for-builds)."
- name: Generate artifact attestation
uses: actions/attest-build-provenance@v1
with:
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}/tofutf
subject-digest: ${{ steps.push.outputs.digest }}
push-to-registry: true
# # This step generates an artifact attestation for the image, which is an unforgeable statement about where and how it was built. It increases supply chain security for people who consume the image. For more information, see "[AUTOTITLE](/actions/security-guides/using-artifact-attestations-to-establish-provenance-for-builds)."
# - name: Generate artifact attestation
# uses: actions/attest-build-provenance@v1
# with:
# subject-name: ${{ env.REGISTRY }}/${{ env.REPO_NAME }}/tofutf
# subject-digest: ${{ steps.push.outputs.digest }}
# push-to-registry: true

0 comments on commit c7cc1a4

Please sign in to comment.