Skip to content

Commit

Permalink
add Graphix cloudbuild workflow (#99)
Browse files Browse the repository at this point in the history
* add Graphix cloudbuild workflow

* add remote repo to apply kubectl

* change PAT token name
  • Loading branch information
DaMandal0rian authored Jul 20, 2024
1 parent fad407a commit 1bd90b9
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions cloudbuild.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
options:
machineType: "N1_HIGHCPU_32"
timeout: 1800s

steps:
- id: 'Checkout Kustomize Configuration'
name: 'gcr.io/cloud-builders/git'
env:
- 'GIT_AUTH_TOKEN=$_GITHUB_GRAPHIX_INFRA_PAT'
args:
- 'clone'
- 'https://github.com/edgeandnode/graph-infra.git'

- id: 'Update Graphix Deployment'
name: 'gcr.io/cloud-builders/kubectl'
env:
- "CLOUDSDK_COMPUTE_ZONE=us-central1-a"
- "CLOUDSDK_CONTAINER_CLUSTER=testnet"
- "CLOUDSDK_CORE_PROJECT=graph-mainnet"
args:
- 'apply'
- '-k'
- 'graph-infra/graph-mainnet/testnet/k8s/graphix/environments/'

- id: 'Restart Graphix Deployment'
name: 'gcr.io/cloud-builders/kubectl'
env:
- "CLOUDSDK_COMPUTE_ZONE=us-central1-a"
- "CLOUDSDK_CONTAINER_CLUSTER=testnet"
- "CLOUDSDK_CORE_PROJECT=graph-mainnet"
args:
- 'rollout'
- 'restart'
- 'deployment/graphix-cross-checker'

substitutions:
_GITHUB_PAT: ${_GITHUB_PAT}

0 comments on commit 1bd90b9

Please sign in to comment.