From 916fcb3584ebeda06b4cc7fbbea3b4c4056e56b2 Mon Sep 17 00:00:00 2001 From: Michael Housh Date: Tue, 19 Nov 2024 15:08:07 -0500 Subject: [PATCH] fix: Update to release workflow --- .gitea/workflows/release.yml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 38a646f..7739cfc 100755 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -4,15 +4,15 @@ name: Create and publish a Docker image # Configures this workflow to run every time a change is pushed to the branch called `release`. on: push: - #branches: ['release'] -# tags: -# - '*' + branches: ['release'] + tags: + - '*' workflow_dispatch: # Defines two custom environment variables for the workflow. These are used for the Container registry domain, and a name for the Docker image that this workflow builds. env: REGISTRY: git.housh.dev - IMAGE_NAME: ${{ github.repository }} + IMAGE_NAME: ${{ gitea.repository }} # There is a single job in this workflow. It's configured to run on the latest available version of Ubuntu. jobs: @@ -59,10 +59,10 @@ jobs: labels: ${{ steps.meta.outputs.labels }} # 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}} - subject-digest: ${{ steps.push.outputs.digest }} - push-to-registry: true - github-token: ${{ secrets.CONTAINER_TOKEN }} +# - 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 +# github-token: ${{ secrets.CONTAINER_TOKEN }}