From 88c7548df461a56904fbadcef269d3f8b4bd8789 Mon Sep 17 00:00:00 2001 From: DaMandal0rian Date: Fri, 19 Jul 2024 02:15:59 +0300 Subject: [PATCH] add remote repo to apply kubectl --- cloudbuild.yaml | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/cloudbuild.yaml b/cloudbuild.yaml index 3bf6a58..567ce58 100644 --- a/cloudbuild.yaml +++ b/cloudbuild.yaml @@ -3,6 +3,13 @@ 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: @@ -10,11 +17,9 @@ steps: - "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: @@ -24,4 +29,7 @@ steps: args: - 'rollout' - 'restart' - - 'deployment/graphix' + - 'deployment/graphix-cross-checker' + +substitutions: + _GITHUB_PAT: ${_GITHUB_PAT}