File tree Expand file tree Collapse file tree 1 file changed +21
-1
lines changed
Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Original file line number Diff line number Diff line change 11name : Deploy helm chart
2- description : " Check the size of a Pull Request"
2+ description : " Check the size of a Pull Request"
33
44inputs :
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
6166runs :
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+
You can’t perform that action at this time.
0 commit comments