From d06df32bab831ef43f8d205300ae0f74f686f2da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zachary=20Gu=C3=A9not?= Date: Mon, 9 Jun 2025 23:42:02 +0200 Subject: [PATCH] Fix workflow tags and remove attestation --- .gitea/workflows/build-and-push.yml | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/.gitea/workflows/build-and-push.yml b/.gitea/workflows/build-and-push.yml index b69fccb..4b1bf93 100644 --- a/.gitea/workflows/build-and-push.yml +++ b/.gitea/workflows/build-and-push.yml @@ -54,12 +54,17 @@ jobs: tags: | # Tag avec le nom du tag Git type=ref,event=tag + # Tag 'latest' pour la branche master + type=raw,value=latest,enable={{is_default_branch}} + # Tag avec le SHA pour les autres branches + type=sha,prefix={{branch}}- labels: | org.opencontainers.image.title=${{ env.IMAGE_NAME }} - org.opencontainers.image.description=Bot Discord - org.opencontainers.image.url=https://gitea.zac.ovh/zachary/bot_Tamiseur - org.opencontainers.image.source=https://gitea.zac.ovh/zachary/bot_Tamiseur + org.opencontainers.image.description=Bot Discord de moi + org.opencontainers.image.url=https://git.zac.ovh/zachary/bot_Tamiseur + org.opencontainers.image.source=https://git.zac.ovh/zachary/bot_Tamiseur org.opencontainers.image.revision=${{ github.sha }} + org.opencontainers.image.created={{date 'RFC3339'}} - name: Build and push Docker image uses: docker/build-push-action@v5 @@ -72,10 +77,3 @@ jobs: labels: ${{ steps.meta.outputs.labels }} cache-from: type=gha cache-to: type=gha,mode=max - - - name: Generate artifact attestation - uses: actions/attest-build-provenance@v1 - with: - subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_PATH }}/${{ env.IMAGE_NAME }} - subject-digest: ${{ steps.build.outputs.digest }} - push-to-registry: true