Skip to content

Commit

Permalink
fix: use ref_name without v prefix for helm image tag
Browse files Browse the repository at this point in the history
  • Loading branch information
fython committed Mar 2, 2024
1 parent 347a5c3 commit 8818c83
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,15 @@ jobs:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
- name: Set Versions
uses: actions/github-script@v4
id: set_version
with:
script: |
core.setOutput('ref_name_without_v', context.ref.replace('v', ''))
- name: Deploy
uses: WyriHaximus/github-action-helm3@v3
with:
exec: helm upgrade coriander-bot-rs ./helm-chart/ --install --wait --atomic --namespace=${{ secrets.DEPLOY_HELM_NAMESPACE }} --set bot.token=${{ secrets.SB_GEN2_BOT_TOKEN }} --set image.tag=${{ github.ref_name }}
exec: helm upgrade coriander-bot-rs ./helm-chart/ --install --wait --atomic --namespace=${{ secrets.DEPLOY_HELM_NAMESPACE }} --set bot.token=${{ secrets.SB_GEN2_BOT_TOKEN }} --set image.tag=${{ steps.set_version.outputs.ref_name_without_v }}
kubeconfig: '${{ secrets.SB_GEN2_BOT_KUBECONFIG }}'
overrule_existing_kubeconfig: "true"

0 comments on commit 8818c83

Please sign in to comment.