From f32e7e318f3a631295615062f1282f7c5f129f05 Mon Sep 17 00:00:00 2001 From: Vedant Pareek <36420365+dunefro@users.noreply.github.com> Date: Fri, 18 Oct 2024 14:57:21 +0530 Subject: [PATCH] Artifactory helm chart push (#30) * Pushing helm charts to artifactory * Removed echo with real command --- .github/workflows/release.yaml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 45ef108..e745229 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -4,6 +4,12 @@ on: push: tags: - elasti-helm-v* + +env: + HELM_REGISTRY_URL: ${{ vars.TRUEFOUNDRY_ARTIFACTORY_REGISTRY_URL }} + HELM_REGISTRY_USERNAME: ${{ secrets.TRUEFOUNDRY_ARTIFACTORY_PUBLIC_USERNAME }} + HELM_REGISTRY_PASSWORD: ${{ secrets.TRUEFOUNDRY_ARTIFACTORY_PUBLIC_PASSWORD }} + HELM_CHART_REPOSITORY: ${{ vars.TRUEFOUNDRY_ARTIFACTORY_PUBLIC_HELM_REPOSITORY }} jobs: release: @@ -22,7 +28,7 @@ jobs: - name: Helm registry login run: | - helm registry login -u ${{ secrets.OCI_REGISTRY_USERNAME}} -p ${{ secrets.OCI_REGISTRY_PASSWORD }} quay.io + helm registry login -u ${{ env.HELM_REGISTRY_USERNAME}} -p ${{ env.HELM_REGISTRY_PASSWORD }} ${{ env.HELM_REGISTRY_URL }} - name: Helm push run: | @@ -42,6 +48,6 @@ jobs: # pushing the helm charts echo "Pushing Chart: $CHART_NAME" echo "Version: $CHART_NAME-$CHART_VERSION.tgz" - helm push $CHART_NAME-$CHART_VERSION.tgz oci://quay.io/truefoundrycharts + helm push $CHART_NAME-$CHART_VERSION.tgz oci://${{ env.HELM_CHART_REPOSITORY}} echo "Successfully pushed chart: $CHART_NAME" done \ No newline at end of file