From c3f6ffc46697fd4a5124c6e0ccbfed96e32cf0d4 Mon Sep 17 00:00:00 2001 From: Marigold Date: Sat, 7 Oct 2023 12:03:42 +0200 Subject: [PATCH] change pipeline slug --- baker/BuildkiteTrigger.ts | 7 +++++-- settings/serverSettings.ts | 3 +++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/baker/BuildkiteTrigger.ts b/baker/BuildkiteTrigger.ts index 24be01cdb9e..db43ceb666f 100644 --- a/baker/BuildkiteTrigger.ts +++ b/baker/BuildkiteTrigger.ts @@ -1,8 +1,11 @@ -import { BUILDKITE_API_ACCESS_TOKEN } from "../settings/serverSettings.js" +import { + BUILDKITE_API_ACCESS_TOKEN, + BUILDKITE_DEPLOY_CONTENT_PIPELINE_SLUG, +} from "../settings/serverSettings.js" export class BuildkiteTrigger { private organizationSlug = "our-world-in-data" - private pipelineSlug = "grapher-cloudflare-pages-deploy-queue" + private pipelineSlug = BUILDKITE_DEPLOY_CONTENT_PIPELINE_SLUG async triggerBuild( message: string, diff --git a/settings/serverSettings.ts b/settings/serverSettings.ts index 4a1f590e180..316f8eea277 100644 --- a/settings/serverSettings.ts +++ b/settings/serverSettings.ts @@ -173,5 +173,8 @@ export const DATA_API_URL: string = clientSettings.DATA_API_URL export const BUILDKITE_API_ACCESS_TOKEN: string = serverSettings.BUILDKITE_API_ACCESS_TOKEN ?? "" +export const BUILDKITE_DEPLOY_CONTENT_PIPELINE_SLUG: string = + serverSettings.BUILDKITE_DEPLOY_CONTENT_PIPELINE_SLUG || + "grapher-deploy-content-trigger" export const OPENAI_API_KEY: string = serverSettings.OPENAI_API_KEY ?? ""