File tree Expand file tree Collapse file tree 1 file changed +15
-15
lines changed
Expand file tree Collapse file tree 1 file changed +15
-15
lines changed Original file line number Diff line number Diff line change 44 push :
55 tags :
66 - v*
7- branches :
8- - " *"
97
108env :
119 REGISTRY : ghcr.io
@@ -31,25 +29,27 @@ jobs:
3129 username : ${{ github.actor }}
3230 password : ${{ secrets.GITHUB_TOKEN }}
3331
32+ - name : Log in to the Helm OCI registry
33+ run : |
34+ echo ${{ secrets.GITHUB_TOKEN }} | helm registry login ${{ env.REGISTRY }} -u ${{ github.actor }} --password-stdin
35+
3436 - name : Extract metadata (tags, labels) for Docker
3537 id : meta
3638 uses : docker/metadata-action@v5
3739 with :
3840 images : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
3941
40- # - name: Build and push Docker image
41- # id: push
42- # uses: docker/build-push-action@v6
43- # with:
44- # context: .
45- # push: true
46- # tags: ${{ steps.meta.outputs.tags }}
47- # labels: ${{ steps.meta.outputs.labels }}
48- - name : helm login
49- run : |
50- echo ${{ secrets.GITHUB_TOKEN }} | helm registry login ${{ env.REGISTRY }} -u ${{ github.actor }} --password-stdin
51- - name : helm package & puch
42+ - name : Build and push Docker image
43+ id : push
44+ uses : docker/build-push-action@v6
45+ with :
46+ context : .
47+ push : true
48+ tags : ${{ steps.meta.outputs.tags }}
49+ labels : ${{ steps.meta.outputs.labels }}
50+
51+ - name : Package and push Helm chart
5252 working-directory : helm
5353 run : |
54- helm package designate-certmanager-webhook --version v0.1.0
54+ helm package designate-certmanager-webhook --version ${{ github.ref_name }}
5555 helm push *.tgz oci://${{ env.REGISTRY }}/${{ github.repository_owner }}/charts
You can’t perform that action at this time.
0 commit comments