-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add Graphix cloudbuild workflow (#99)
* add Graphix cloudbuild workflow * add remote repo to apply kubectl * change PAT token name
- Loading branch information
1 parent
fad407a
commit 1bd90b9
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
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
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} |