From b04e4ddc3797431f7382f3bea440a1466596d009 Mon Sep 17 00:00:00 2001 From: Alex Vincent Date: Fri, 3 May 2024 15:58:38 +0200 Subject: [PATCH] update helm chart (#33) * test wf * fix * fix2 * update * revert * updates --- .github/workflows/ci.yml | 5 +++-- .../templates/tests/test-connection.yaml | 15 --------------- charts/multi-arch-container-dotnet/values.yaml | 2 +- 3 files changed, 4 insertions(+), 18 deletions(-) delete mode 100644 charts/multi-arch-container-dotnet/templates/tests/test-connection.yaml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1f14607..79cf116 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,7 +9,6 @@ on: # - .github # - .scripts # - .charts - - kustomize - LICENSE - README.md - build.sh @@ -42,8 +41,10 @@ jobs: chart: uses: f2calv/gha-workflows/.github/workflows/helm-chart-package.yml@v1 + permissions: + packages: write #for pushing helm artifact + contents: read #note: for private repos setting packages to write, will reset all other permissions to none (weird?) needs: [versioning, app, image] - if: github.ref == 'refs/heads/main' with: tag: ${{ needs.versioning.outputs.semVer }} diff --git a/charts/multi-arch-container-dotnet/templates/tests/test-connection.yaml b/charts/multi-arch-container-dotnet/templates/tests/test-connection.yaml deleted file mode 100644 index 2a751de..0000000 --- a/charts/multi-arch-container-dotnet/templates/tests/test-connection.yaml +++ /dev/null @@ -1,15 +0,0 @@ -apiVersion: v1 -kind: Pod -metadata: - name: "{{ include "multi-arch-container-dotnet.fullname" . }}-test-connection" - labels: - {{- include "multi-arch-container-dotnet.labels" . | nindent 4 }} - annotations: - "helm.sh/hook": test -spec: - containers: - - name: wget - image: busybox - command: ['wget'] - args: ['{{ include "multi-arch-container-dotnet.fullname" . }}:{{ .Values.service.port }}'] - restartPolicy: Never diff --git a/charts/multi-arch-container-dotnet/values.yaml b/charts/multi-arch-container-dotnet/values.yaml index 46d91c4..da8d126 100644 --- a/charts/multi-arch-container-dotnet/values.yaml +++ b/charts/multi-arch-container-dotnet/values.yaml @@ -5,7 +5,7 @@ replicaCount: 1 image: - repository: multi-arch-container-dotnet + repository: ghcr.io/f2calv/multi-arch-container-dotnet pullPolicy: IfNotPresent # Overrides the image tag whose default is the chart appVersion. tag: ""