Skip to content

NC Delete Namespace and Bucket #36

NC Delete Namespace and Bucket

NC Delete Namespace and Bucket #36

name: NC Delete Namespace and Bucket
# cd schulcloud-nextcloud
# gh workflow run nextcloud-branch-deletion.yml -f NAMESPACE_NAME=<namespace-name>
on:
workflow_dispatch:
inputs:
NAMESPACE_NAME:
description: "Select namespace to delete from sc-dev-nextcloud"
required: true
jobs:
delete_namespace_and_buckets:
if: inputs.NAMESPACE_NAME != 'nbc-main' && inputs.NAMESPACE_NAME != 'brb-main' && inputs.NAMESPACE_NAME != 'thr-main'
uses: ./.github/workflows/nextcloud-deletion.yml
with:
CLUSTER: sc-dev-nextcloud
BUCKET_NAME: ${{inputs.NAMESPACE_NAME }}
NAMESPACE: ${{inputs.NAMESPACE_NAME }}
secrets:
token: ${{ secrets.GITHUB_TOKEN }}
KUBECONFIG: ${{ secrets.KUBECONFIG }}
S3ACCESSKEY: ${{ secrets.S3ACCESSKEY }}
S3ACCESSSECRET: ${{ secrets.S3ACCESSSECRET }}
PROXY_CREDENTIALS: ${{ secrets.PROXY_CREDENTIALS }}