NC Delete Namespace and Bucket #36
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |