Skip to content

Commit

Permalink
publish helm chart to docker registry (#6)
Browse files Browse the repository at this point in the history
Signed-off-by: Abhijeet V <[email protected]>
  • Loading branch information
abvaidya authored Mar 13, 2024
1 parent 2a1f60c commit 73c8182
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ env:
REGISTRY_URL: docker.io
REGISTRY_USERNAME: ${{ secrets.REGISTRY_USERNAME }}
REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }}
REGISTRY_OWNER: athenz

jobs:
build_images:
Expand Down Expand Up @@ -104,3 +105,10 @@ jobs:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
CR_PACKAGE_PATH: ${{ steps.chart_download.outputs.download-path }}
CR_SKIP_EXISTING: true

- name: push helm chart to docker hub
run: |
echo ${{ secrets.REGISTRY_PASSWORD }} | helm registry login -u ${{ secrets.REGISTRY_USERNAME }} --password-stdin registry-1.docker.io
cd "${{ steps.chart_download.outputs.download-path }}"
ls -ltr
helm push "${{ needs.build_images.outputs.RELEASE_HELM_CHART_NAME }}-${{ needs.build_images.outputs.RELEASE_HELM_CHART_VERSION }}.tgz" oci://registry-1.docker.io/${{ env.REGISTRY_OWNER }}

0 comments on commit 73c8182

Please sign in to comment.