Skip to content
This repository was archived by the owner on Jan 31, 2025. It is now read-only.

Commit

Permalink
BC-6931 - fix clean job and add remove kube config always
Browse files Browse the repository at this point in the history
  • Loading branch information
mamutmk5 authored Apr 9, 2024
1 parent 7bbbd01 commit cee848c
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/clean.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,14 @@ jobs:
- create_branch_identifier
steps:
- run: |
echo "${{ secrets.DEV_KUBE_CONFIG_DBC }}" > files/config
mkdir files
echo "${{ secrets.DEV_KUBE_CONFIG_DBC }}" > files/config_dbc
- name: delete custom resources and namespaces
run: |
branch_identifier='${{ needs.create_branch_identifier.outputs.id_branch }}'
kubectl --namespace $branch_identifier delete --ignore-not-found=true --all=true OnePasswordItem
kubectl delete --ignore-not-found=true ns $branch_identifier
kubectl --kubeconfig=files/config_dbc --namespace $branch_identifier delete --ignore-not-found=true --all=true OnePasswordItem
kubectl --kubeconfig=files/config_dbc delete --ignore-not-found=true ns $branch_identifier
- name: remove kubeconfig
if: ${{ always() }}
run: |
rm -rf files

0 comments on commit cee848c

Please sign in to comment.