Update Managed Files #81
Workflow file for this run
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: Delete Review App | |
on: | |
pull_request: | |
types: [closed] | |
permissions: | |
id-token: write | |
contents: read | |
concurrency: | |
group: ${{ github.event.pull_request.number }} | |
jobs: | |
delete: | |
runs-on: k8s-public-msp | |
container: | |
image: registry.gitlab.com/cmmarslender/kubectl-helm:v3 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Vault Login | |
uses: Chia-Network/actions/vault/login@main | |
with: | |
vault_url: ${{ secrets.VAULT_URL }} | |
role_name: github-pub-metrics-grafana | |
- name: Get secrets from vault | |
uses: hashicorp/vault-action@v3 | |
with: | |
url: ${{ secrets.VAULT_URL }} | |
token: ${{ env.VAULT_TOKEN }} | |
secrets: | | |
secret/data/msp/k8s/k8s-msp api_server_url | K8S_API_SERVER_URL; | |
- name: Login to k8s cluster | |
uses: Chia-Network/actions/vault/k8s-login@main | |
with: | |
vault_url: ${{ secrets.VAULT_URL }} | |
vault_token: ${{ env.VAULT_TOKEN }} | |
backend_name: k8s-msp | |
role_name: github-actions | |
cluster_url: ${{ env.K8S_API_SERVER_URL }} | |
- name: Helm Uninstall | |
env: | |
REVIEW_SLUG: ${{ github.event.pull_request.number }} | |
run: | | |
helm uninstall -n "grafana-pub" "grafana-$REVIEW_SLUG" |