Skip to content

Commit cd13d20

Browse files
committed
Pushing helm charts to artifactory
1 parent 749f47f commit cd13d20

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.github/workflows/release.yaml

+10-4
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,14 @@ name: Release Elasti Helm Chart
22

33
on:
44
push:
5-
tags:
6-
- elasti-helm-v*
5+
# tags:
6+
# - elasti-helm-v*
7+
8+
env:
9+
HELM_REGISTRY_URL: ${{ vars.TRUEFOUNDRY_ARTIFACTORY_REGISTRY_URL }}
10+
HELM_REGISTRY_USERNAME: ${{ secrets.TRUEFOUNDRY_ARTIFACTORY_PUBLIC_USERNAME }}
11+
HELM_REGISTRY_PASSWORD: ${{ secrets.TRUEFOUNDRY_ARTIFACTORY_PUBLIC_PASSWORD }}
12+
HELM_CHART_REPOSITORY: ${{ vars.TRUEFOUNDRY_ARTIFACTORY_PUBLIC_HELM_REPOSITORY }}
713

814
jobs:
915
release:
@@ -22,7 +28,7 @@ jobs:
2228
2329
- name: Helm registry login
2430
run: |
25-
helm registry login -u ${{ secrets.OCI_REGISTRY_USERNAME}} -p ${{ secrets.OCI_REGISTRY_PASSWORD }} quay.io
31+
helm registry login -u ${{ env.HELM_REGISTRY_USERNAME}} -p ${{ env.HELM_REGISTRY_PASSWORD }} ${{ env.HELM_REGISTRY_URL }}
2632
2733
- name: Helm push
2834
run: |
@@ -42,6 +48,6 @@ jobs:
4248
# pushing the helm charts
4349
echo "Pushing Chart: $CHART_NAME"
4450
echo "Version: $CHART_NAME-$CHART_VERSION.tgz"
45-
helm push $CHART_NAME-$CHART_VERSION.tgz oci://quay.io/truefoundrycharts
51+
echo "helm push $CHART_NAME-$CHART_VERSION.tgz oci://${{ env.HELM_CHART_REPOSITORY}}"
4652
echo "Successfully pushed chart: $CHART_NAME"
4753
done

0 commit comments

Comments
 (0)