Skip to content

Commit

Permalink
Fix goreleaser tag substitution
Browse files Browse the repository at this point in the history
Signed-off-by: francostellari <[email protected]>
  • Loading branch information
francostellari committed Mar 29, 2024
1 parent baed7d4 commit d81a93a
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 d81a93a

Please sign in to comment.