Skip to content

Clean-repository

Clean-repository #145

name: Clean-repository
on:
repository_dispatch:
types: [Clean-repository]
workflow_dispatch:
jobs:
clean-repository:
runs-on: ubuntu-latest
steps:
- id: 'auth'
uses: 'google-github-actions/auth@v1'
with:
credentials_json: ${{ secrets.GKE_SA_KEY }}
- uses: google-github-actions/get-gke-credentials@v1
with:
cluster_name: ${{ secrets.GKE_CLUSTER }}
location: ${{ secrets.GKE_ZONE }}
- name: "Clean Repository"
run: |
kubectl -n dirigible exec -it deploy/trial-dirigible -- rm -r /target
kubectl -n dirigible rollout restart deployment trial-dirigible