Skip to content

Commit

Permalink
create scale down job
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick-bcw committed Aug 8, 2024
1 parent 96e65bd commit b9c69d3
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/scale-down.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Scale down workers

on:
workflow_dispatch:

jobs:
test:
name: Scale
runs-on: ubuntu-latest
permissions:
contents: 'read'
id-token: 'write'
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Authenticate to Google Cloud
id: auth
uses: google-github-actions/auth@v2
with:
project_id: ${{ secrets.GCP_PROJECT_ID }}
workload_identity_provider: ${{ secrets.GCP_WORKLOAD_IDENTITY_ID }}
service_account: ${{ secrets.GCP_SERVICE_ACCOUNT }}

- name: Set up Google Cloud SDK
uses: google-github-actions/setup-gcloud@v1

- name: Get GKE credentials
id: 'get-credentials'
uses: 'google-github-actions/get-gke-credentials@v2'
with:
cluster_name: 'immutable-prod'
location: 'us-central1'

- name: Run benchmark script
run: >
kubectl scale --replicas=0 deployment/zero-bin-worker -n zkevm

0 comments on commit b9c69d3

Please sign in to comment.