From 5ffefa06c09684ba9ab550104463391eb52e4ca1 Mon Sep 17 00:00:00 2001 From: Frederic Leger Date: Tue, 19 Mar 2024 08:05:19 +0100 Subject: [PATCH] ci: fix helm push error --- .github/workflows/release.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e227f59..3983b62 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -71,13 +71,19 @@ jobs: uses: hoverkraft-tech/helm-push@v5.0.0 with: useOCIRegistry: true - username: ${{ vars.OCI_REGISTRY_USERNAME }} + username: ${OCI_REGISTRY_USERNAME} # NOTE: access-token is the password for OCI registry # cf https://github.com/bsord/helm-push/blob/5ec3320fb5720a0a5aa210d871999f2b836f2d97/entrypoint.sh#L37 - access-token: ${{ secrets.OCI_REGISTRY_PASSWORD }} - registry-url: oci://${vars.OCI_REGISTRY}/${vars.OCI_REGISTRY_CHART_REPOSITORY} + access-token: ${OCI_REGISTRY_PASSWORD} + registry-url: oci://${OCI_REGISTRY}/${OCI_REGISTRY_CHART_REPOSITORY} chart-folder: helm/chart force: true update-dependencies: true version: ${{ github.event.inputs.tagVersion }} appVersion: ${{ github.event.inputs.tagVersion }} + env: + OCI_REGISTRY: ${{ vars.OCI_REGISTRY }} + OCI_REGISTRY_USERNAME: ${{ vars.OCI_REGISTRY_USERNAME }} + OCI_REGISTRY_PASSWORD: ${{ secrets.OCI_REGISTRY_PASSWORD }} + OCI_REGISTRY_CHART_REPOSITORY: ${{ vars.OCI_REGISTRY_CHART_REPOSITORY }} +