Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: add workflow for disabling faucet #3410

Merged
merged 1 commit into from
Nov 20, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions .github/workflows/disable-faucet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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@v3

- id: gcloudauth
uses: google-github-actions/auth@v0
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@v0
with:
cluster_name: testnet
project_id: penumbra-sl-testnet
location: us-central1

- name: delete galileo deployment
run: kubectl delete deployment galileo || true
Loading