Skip to content

Commit

Permalink
Fix chart name to match OCI repo name (required by dockerhub)
Browse files Browse the repository at this point in the history
  • Loading branch information
ekampf committed Dec 9, 2024
1 parent 422f10e commit a64ae46
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,14 @@ jobs:
fetch-depth: 0

- uses: azure/setup-helm@v4.2.0
with:
version: '3.15.3'
- uses: chrisdickinson/setup-yq@latest

- name: Set env vars
run: |
echo "CHART_VERSION=$(yq r deploy/twingate-operator/Chart.yaml version)" >> $GITHUB_ENV
echo "APP_VERSION=$(echo ${GITHUB_REF_NAME:1}) >> $GITHUB_ENV
echo "APP_VERSION=$(echo ${GITHUB_REF_NAME:1})" >> $GITHUB_ENV
- name: Login to Docker Hub
uses: docker/login-action@v3
Expand All @@ -81,9 +83,9 @@ jobs:
env:
REGISTRY: registry-1.docker.io
run: |
echo ${{ secrets.GITHUB_TOKEN }} | helm registry login -u twingate --password-stdin $REGISTRY
echo ${{ secrets.DOCKERHUB_TOKEN }} | helm registry login $REGISTRY -u ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin
helm package deploy/twingate-operator --version $CHART_VERSION --app-version $APP_VERSION
helm push twingate-operator-$CHART_VERSION.tgz oci://$REGISTRY/twingate/kubernetes-operator-chart
helm push kubernetes-operator-chart-$CHART_VERSION.tgz oci://$REGISTRY/twingate --debug
- name: Helm Publish (Github)
Expand All @@ -92,7 +94,7 @@ jobs:
run: |
echo ${{ secrets.GITHUB_TOKEN }} | helm registry login -u twingate --password-stdin $REGISTRY
helm package deploy/twingate-operator --version $CHART_VERSION --app-version $APP_VERSION
helm push twingate-operator-$CHART_VERSION.tgz oci://$REGISTRY/twingate/charts
helm push twingate-operator-chart-$CHART_VERSION.tgz oci://$REGISTRY/twingate/charts
# release_prod:
# name: Release PROD
Expand Down
2 changes: 1 addition & 1 deletion deploy/twingate-operator/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: v2
name: twingate-operator
name: kubernetes-operator-chart
description: A Helm chart for installing twingate-operator
type: application
version: 0.1.9
Expand Down

0 comments on commit a64ae46

Please sign in to comment.