Skip to content

Commit

Permalink
add remote repo to apply kubectl
Browse files Browse the repository at this point in the history
  • Loading branch information
DaMandal0rian committed Jul 18, 2024
1 parent 291a07c commit 88c7548
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,23 @@ options:
timeout: 1800s

steps:
- id: 'Checkout Kustomize Configuration'
name: 'gcr.io/cloud-builders/git'
env:
- 'GIT_AUTH_TOKEN=$_GITHUB_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:
- 'set'
- 'image'
- 'deployment/graphix'
- 'graphix=ghcr.io/edgeandnode/graphix:latest'
- '--record'
- 'apply'
- '-k'
- 'graph-infra/graph-mainnet/testnet/k8s/graphix/environments/'
- id: 'Restart Graphix Deployment'
name: 'gcr.io/cloud-builders/kubectl'
env:
Expand All @@ -24,4 +29,7 @@ steps:
args:
- 'rollout'
- 'restart'
- 'deployment/graphix'
- 'deployment/graphix-cross-checker'

substitutions:
_GITHUB_PAT: ${_GITHUB_PAT}

0 comments on commit 88c7548

Please sign in to comment.