diff --git a/.forgejo/workflows/publish.yml b/.forgejo/workflows/publish.yml index ef56834..02dc1fc 100644 --- a/.forgejo/workflows/publish.yml +++ b/.forgejo/workflows/publish.yml @@ -29,18 +29,18 @@ jobs: uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7 with: images: ${{ env.GITHUB_REPOSITORY }} -# - name: Build and push Docker image -# id: push -# uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671 -# with: -# context: . -# file: ./Dockerfile -# push: true -# tags: ${{ steps.meta.outputs.tags }} -# labels: ${{ steps.meta.outputs.labels }} -# - name: Generate artifact attestation -# uses: actions/attest-build-provenance@v1 -# with: -# subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}} -# subject-digest: ${{ steps.push.outputs.digest }} -# push-to-registry: true \ No newline at end of file + - name: Build and push Docker image + id: push + uses: docker/build-push-action@v6 + with: + context: . + file: ./Dockerfile + push: true + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }} + - name: Generate artifact attestation + uses: actions/attest-build-provenance@v1 + with: + subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}} + subject-digest: ${{ steps.push.outputs.digest }} + push-to-registry: true \ No newline at end of file