Skip to content

Commit

Permalink
Artifactory helm chart push (#30)
Browse files Browse the repository at this point in the history
* Pushing helm charts to artifactory

* Removed echo with real command
  • Loading branch information
dunefro authored Oct 18, 2024
1 parent 749f47f commit f32e7e3
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
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
helm push $CHART_NAME-$CHART_VERSION.tgz oci://${{ env.HELM_CHART_REPOSITORY}}
echo "Successfully pushed chart: $CHART_NAME"
done

0 comments on commit f32e7e3

Please sign in to comment.