Skip to content

Commit a0fe0cb

Browse files
chore: add uninstall step PIDM-922
1 parent 27e1f41 commit a0fe0cb

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

aks-deploy/action.yml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: Deploy helm chart
2-
description: "Check the size of a Pull Request"
2+
description: "Check the size of a Pull Request"
33

44
inputs:
55
branch:
@@ -57,6 +57,11 @@ inputs:
5757
description: to set the timeout for the helm upgrade command
5858
type: string
5959
default: '5m0s'
60+
uninstall:
61+
description: 'true if you want to uninstall instead of install'
62+
required: false
63+
type: boolean
64+
default: false
6065

6166
runs:
6267
using: "composite"
@@ -102,6 +107,7 @@ runs:
102107
103108
- name: 🚀 Helm Deploy
104109
shell: bash
110+
if: ${{ inputs.uninstall == false }}
105111
working-directory: ${{ env.working_dir }}
106112
run: |
107113
echo "🚀 Launch helm deploy"
@@ -114,3 +120,17 @@ runs:
114120
115121
echo "✅ Helm deployed"
116122
123+
- name: 🗑Remove deployment
124+
if: ${{ inputs.uninstall == true }}
125+
shell: bash
126+
run: |
127+
echo "🗑Launch helm uninstall"
128+
helm uninstall ${{ inputs.app_name }} -n ${{ inputs.namespace }}
129+
echo "✔️Helm uninstall"
130+
131+
132+
133+
134+
135+
136+

0 commit comments

Comments
 (0)