Skip to content

Commit

Permalink
feat(deploy): add helm list after upgrade and output chart and app ve…
Browse files Browse the repository at this point in the history
…rsion

Signed-off-by: Robert Müller <rmuller@mozilla.com>
  • Loading branch information
Flipez committed Mar 11, 2024
1 parent 9f5bc08 commit ec83f68
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions deploy/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -141,3 +141,26 @@ runs:
--set ${{ inputs.tag_value_path }}=${{ inputs.image_tag }} \
--timeout ${{ inputs.helm_timeout }} \
${{ inputs.helm_values }}
# List installed charts after upgrade
- name: helm list
shell: bash
run: helm list -n ${{ inputs.app_name }}-${{ inputs.env_name }} -a

- name: helm app version
id: helm_app_version
shell: bash
run: |
helm list \
--filter ${{ inputs.helm_release_name }} \
--namespace ${{ inputs.app_name }}-${{ inputs.env_name }} \
--no-headers | awk -v app=10 '{print $app}' >> $GITHUB_OUTPUT
- name: helm chart version
id: helm_chart_version
shell: bash
run: |
helm list \
--filter ${{ inputs.helm_release_name }} \
--namespace ${{ inputs.app_name }}-${{ inputs.env_name }} \
--no-headers | awk -v chart=9 '{print $chart}' >> $GITHUB_OUTPUT

0 comments on commit ec83f68

Please sign in to comment.