Skip to content

Commit

Permalink
Pushing helm charts to artifactory
Browse files Browse the repository at this point in the history
  • Loading branch information
dunefro committed Oct 18, 2024
1 parent 749f47f commit cd13d20
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,14 @@ name: Release Elasti Helm Chart

on:
push:
tags:
- elasti-helm-v*
# 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:
Expand All @@ -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: |
Expand All @@ -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
echo "helm push $CHART_NAME-$CHART_VERSION.tgz oci://${{ env.HELM_CHART_REPOSITORY}}"
echo "Successfully pushed chart: $CHART_NAME"
done

0 comments on commit cd13d20

Please sign in to comment.