Compare commits

...

2 Commits

Author SHA1 Message Date
9a4902291e Fix workflow sha tag
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 1m2s
2025-06-10 01:49:29 +02:00
d06df32bab Fix workflow tags and remove attestation
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 3m11s
2025-06-09 23:42:02 +02:00

View File

@@ -54,12 +54,17 @@ jobs:
tags: | tags: |
# Tag avec le nom du tag Git # Tag avec le nom du tag Git
type=ref,event=tag 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=sha-
labels: | labels: |
org.opencontainers.image.title=${{ env.IMAGE_NAME }} org.opencontainers.image.title=${{ env.IMAGE_NAME }}
org.opencontainers.image.description=Bot Discord org.opencontainers.image.description=Bot Discord de moi
org.opencontainers.image.url=https://gitea.zac.ovh/zachary/bot_Tamiseur org.opencontainers.image.url=https://git.zac.ovh/zachary/bot_Tamiseur
org.opencontainers.image.source=https://gitea.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.revision=${{ github.sha }}
org.opencontainers.image.created={{date 'RFC3339'}}
- name: Build and push Docker image - name: Build and push Docker image
uses: docker/build-push-action@v5 uses: docker/build-push-action@v5
@@ -72,10 +77,3 @@ jobs:
labels: ${{ steps.meta.outputs.labels }} labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha cache-from: type=gha
cache-to: type=gha,mode=max 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