-
Notifications
You must be signed in to change notification settings - Fork 319
38 lines (34 loc) · 1.27 KB
/
disable-faucet.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
---
# Convenient ad-hoc action to destroy the Galileo deployment.
# Since starting the summoning ceremony, load has been very high on Galileo.
# Despite perf improvements, the bot can still act up. This action
# allow a one-time action to destroy the bot deployment. To restore it,
# `helmfile sync <galileo>` is required on the infra repo.
# TODO: add an "enable faucet" action.
name: Disable faucet
on:
# Only run ad-hoc, never automatically.
workflow_dispatch:
jobs:
disable-faucet:
name: Disable faucet
permissions:
contents: 'read'
id-token: 'write'
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- id: gcloudauth
uses: google-github-actions/auth@v2
with:
workload_identity_provider: 'projects/1006847873719/locations/global/workloadIdentityPools/gh-runner-pool/providers/my-provider'
service_account: '[email protected]'
- name: get gke credentials
uses: google-github-actions/get-gke-credentials@v2
with:
cluster_name: testnet
project_id: penumbra-sl-testnet
location: us-central1
- name: delete galileo deployment
run: kubectl delete deployment galileo || true