Skip to content
Closed
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
18 changes: 17 additions & 1 deletion aks-deploy/action.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Deploy helm chart
description: "Check the size of a Pull Request"
description: "Check the size of a Pull Request"

inputs:
branch:
Expand Down Expand Up @@ -57,6 +57,11 @@ inputs:
description: to set the timeout for the helm upgrade command
type: string
default: '5m0s'
uninstall:
description: 'true if you want to uninstall instead of install'
required: false
type: boolean
default: false

runs:
using: "composite"
Expand Down Expand Up @@ -102,6 +107,7 @@ runs:

- name: 🚀 Helm Deploy
shell: bash
if: ${{ inputs.uninstall == 'false' }}
working-directory: ${{ env.working_dir }}
run: |
echo "🚀 Launch helm deploy"
Expand All @@ -114,3 +120,13 @@ runs:

echo "✅ Helm deployed"

- name: 🗑Remove deployment
if: ${{ inputs.uninstall == 'true' }}
shell: bash
env:
APP_NAME: ${{ inputs.app_name }}
NAMESPACE: ${{ inputs.namespace }}
run: |
echo "🗑Launch helm uninstall"
helm uninstall "$APP_NAME" -n "$NAMESPACE"
echo "✔️Helm uninstall"