From dd117ac3d0b1d9c07f9d36b6e4cb2900b19cdfdb Mon Sep 17 00:00:00 2001 From: tnt-sentry Date: Thu, 19 Nov 2026 15:14:12 -0500 Subject: [PATCH 1/3] ci(gocd): Deploy through ArgoCD instead of k8s-deploy patches --- gocd/templates/pipelines/launchpad.libsonnet | 25 ++------------------ 1 file changed, 2 insertions(+), 23 deletions(-) diff --git a/gocd/templates/pipelines/launchpad.libsonnet b/gocd/templates/pipelines/launchpad.libsonnet index e345d87f..21b9b44f 100644 --- a/gocd/templates/pipelines/launchpad.libsonnet +++ b/gocd/templates/pipelines/launchpad.libsonnet @@ -30,29 +30,6 @@ function(region) { }, }, }, - { - 'deploy-canary': { - approval: { - type: 'success', - }, - fetch_materials: true, - jobs: { - deploy: { - timeout: 1200, - elastic_profile_id: 'launchpad', - environment_variables: { - // k8s-deploy dispatches deployment workflows using GitHub App credentials. - GITHUB_APP_ID: '{{SECRET:[devinfra-github][app_id]}}', - GITHUB_APP_PRIVATE_KEY: '{{SECRET:[devinfra-github][private_key]}}', - LABEL_SELECTOR: 'service=launchpad,env=canary', - }, - tasks: [ - gocdtasks.script(importstr '../bash/deploy.sh'), - ], - }, - }, - }, - }, { 'deploy-primary': { approval: { @@ -68,6 +45,8 @@ function(region) { GITHUB_APP_ID: '{{SECRET:[devinfra-github][app_id]}}', GITHUB_APP_PRIVATE_KEY: '{{SECRET:[devinfra-github][private_key]}}', LABEL_SELECTOR: 'service=launchpad', + ARGOCD_ONLY: 'true', + ARGOCD_SERVICE: 'launchpad', }, tasks: [ gocdtasks.script(importstr '../bash/deploy.sh'), From 6b60eab3aa16969dd3606ebb0299ec748fa82e70 Mon Sep 17 00:00:00 2001 From: tnt-sentry Date: Thu, 19 Nov 2026 15:52:14 -0500 Subject: [PATCH 2/3] ci(gocd): Keep the canary stage --- gocd/templates/pipelines/launchpad.libsonnet | 23 ++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/gocd/templates/pipelines/launchpad.libsonnet b/gocd/templates/pipelines/launchpad.libsonnet index 21b9b44f..6ee92f19 100644 --- a/gocd/templates/pipelines/launchpad.libsonnet +++ b/gocd/templates/pipelines/launchpad.libsonnet @@ -30,6 +30,29 @@ function(region) { }, }, }, + { + 'deploy-canary': { + approval: { + type: 'success', + }, + fetch_materials: true, + jobs: { + deploy: { + timeout: 1200, + elastic_profile_id: 'launchpad', + environment_variables: { + // k8s-deploy dispatches deployment workflows using GitHub App credentials. + GITHUB_APP_ID: '{{SECRET:[devinfra-github][app_id]}}', + GITHUB_APP_PRIVATE_KEY: '{{SECRET:[devinfra-github][private_key]}}', + LABEL_SELECTOR: 'service=launchpad,env=canary', + }, + tasks: [ + gocdtasks.script(importstr '../bash/deploy.sh'), + ], + }, + }, + }, + }, { 'deploy-primary': { approval: { From 8ceba1c6d38832a146b7398aed372df360918832 Mon Sep 17 00:00:00 2001 From: tnt-sentry Date: Thu, 19 Nov 2026 16:17:14 -0500 Subject: [PATCH 3/3] ci(gocd): Limit ArgoCD-only deploys to s4s2 --- gocd/templates/pipelines/launchpad.libsonnet | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gocd/templates/pipelines/launchpad.libsonnet b/gocd/templates/pipelines/launchpad.libsonnet index 6ee92f19..ee21be43 100644 --- a/gocd/templates/pipelines/launchpad.libsonnet +++ b/gocd/templates/pipelines/launchpad.libsonnet @@ -68,9 +68,10 @@ function(region) { GITHUB_APP_ID: '{{SECRET:[devinfra-github][app_id]}}', GITHUB_APP_PRIVATE_KEY: '{{SECRET:[devinfra-github][private_key]}}', LABEL_SELECTOR: 'service=launchpad', - ARGOCD_ONLY: 'true', - ARGOCD_SERVICE: 'launchpad', - }, + } + (if region == 's4s2' then { + ARGOCD_ONLY: 'true', + ARGOCD_SERVICE: 'launchpad', + } else {}), tasks: [ gocdtasks.script(importstr '../bash/deploy.sh'), ],