Skip to content

Commit

Permalink
Merge pull request #29 from mozilla-it/rmuller/improve-deploy
Browse files Browse the repository at this point in the history
feat(deploy): add helm list and helm version outputs after upgrade
  • Loading branch information
Flipez committed Mar 12, 2024
2 parents 8b1d844 + 729f1cc commit 2510fc2
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions deploy/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -141,3 +141,29 @@ runs:
--set ${{ inputs.tag_value_path }}=${{ inputs.image_tag }} \
--timeout ${{ inputs.helm_timeout }} \
${{ inputs.helm_values }}
# List installed charts after upgrade
- name: helm list
if: always()
shell: bash
run: helm list -n ${{ inputs.app_name }}-${{ inputs.env_name }} -a

- name: helm app version
if: always()
id: helm_app_version
shell: bash
run: |
helm list \
--filter ${{ inputs.helm_release_name }} \
--namespace ${{ inputs.app_name }}-${{ inputs.env_name }} \
--no-headers | awk '{printf "deployed_chart_app_version=%s",$10}' | tee $GITHUB_OUTPUT
- name: helm chart version
if: always()
id: helm_chart_version
shell: bash
run: |
helm list \
--filter ${{ inputs.helm_release_name }} \
--namespace ${{ inputs.app_name }}-${{ inputs.env_name }} \
--no-headers | awk '{printf "deployed_chart_version=%s",$9}' | tee $GITHUB_OUTPUT

0 comments on commit 2510fc2

Please sign in to comment.