Skip to content

Commit

Permalink
Merge pull request #9 from francostellari/goreleaser
Browse files Browse the repository at this point in the history
🐛 Fix goreleaser tag substitution
  • Loading branch information
nirrozenbaum authored Mar 31, 2024
2 parents 64997dc + d81a93a commit bb91c24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,6 @@ jobs:
- name: Package and push chart
run: |
chartVersion=$(echo ${{ github.ref_name }} | cut -c 2-)
sed -i 's@OTP_IMAGE_PLACEHOLDER@${{ env.REGISTRY }}/${{ env.CONTROLLER_IMAGE }}:${chartVersion}@g' ${{ env.CHART_PATH }}/templates/controller.yaml
sed -i 's@OTP_IMAGE_PLACEHOLDER@${{ env.REGISTRY }}/${{ env.CONTROLLER_IMAGE }}:'"${chartVersion}"'@g' ${{ env.CHART_PATH }}/templates/controller.yaml
helm package ${{ env.CHART_PATH }} --destination . --version ${chartVersion} --app-version ${chartVersion} --dependency-update
helm push ./*.tgz oci://${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}

0 comments on commit bb91c24

Please sign in to comment.