Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(deploy): add helm list and helm version outputs after upgrade #29

Merged
merged 4 commits into from
Mar 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Flipez marked this conversation as resolved.
Show resolved Hide resolved

- 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