Skip to content

Commit 9d0d154

Browse files
committed
ci: build container images on releases
also remove attestation to not pollute the repo with the main branch Signed-off-by: Aubin Lambaré <aubin.lambare@cs-soprasteria.com>
1 parent 146e1b5 commit 9d0d154

1 file changed

Lines changed: 5 additions & 9 deletions

File tree

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: Create and publish a Docker image
33
on:
44
push:
55
branches: ['main']
6+
tags: ['v*']
67
workflow_dispatch:
78

89
env:
@@ -24,7 +25,10 @@ jobs:
2425
# the packages are scoped to the account defined here.
2526
steps:
2627
- name: Checkout repository
27-
uses: actions/checkout@v4
28+
uses: actions/checkout@v5
29+
30+
- name: Set up Docker Buildx
31+
uses: docker/setup-buildx-action@v3
2832

2933
- name: Log in to the Container registry
3034
uses: docker/login-action@v3
@@ -52,11 +56,3 @@ jobs:
5256
push: true
5357
tags: ${{ steps.meta.outputs.tags }}
5458
labels: ${{ steps.meta.outputs.labels }}
55-
56-
57-
- name: Generate artifact attestation
58-
uses: actions/attest-build-provenance@v2
59-
with:
60-
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}}
61-
subject-digest: ${{ steps.push.outputs.digest }}
62-
push-to-registry: true

0 commit comments

Comments
 (0)