Fix workflow tags and remove attestation
This commit is contained in:
@@ -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={{branch}}-
|
||||||
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
|
|
||||||
|
|||||||
Reference in New Issue
Block a user