Skip to content

Commit 0a06dea

Browse files
committed
cleanups
1 parent 4b21f83 commit 0a06dea

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

.github/workflows/deploy.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ on:
44
push:
55
tags:
66
- v*
7-
branches:
8-
- "*"
97

108
env:
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

0 commit comments

Comments
 (0)