Skip to content

Commit

Permalink
change pipeline slug
Browse files Browse the repository at this point in the history
  • Loading branch information
Marigold committed Oct 7, 2023
1 parent 6a0f743 commit b5e934f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
11 changes: 8 additions & 3 deletions baker/BuildkiteTrigger.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
import { BUILDKITE_API_ACCESS_TOKEN } from "../settings/serverSettings.js"
import {
BUILDKITE_API_ACCESS_TOKEN,
BUILDKITE_DEPLOY_CONTENT_PIPELINE_SLUG,
BUILDKITE_BRANCH,
} 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
private branch = BUILDKITE_BRANCH

async triggerBuild(
message: string,
Expand All @@ -25,7 +30,7 @@ export class BuildkiteTrigger {

const payload = {
commit: "HEAD",
branch: "master",
branch: this.branch,
message: message,
env: env,
}
Expand Down
5 changes: 5 additions & 0 deletions settings/serverSettings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,5 +173,10 @@ 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-master"
export const BUILDKITE_BRANCH: string =
serverSettings.BUILDKITE_BRANCH || "master"

export const OPENAI_API_KEY: string = serverSettings.OPENAI_API_KEY ?? ""

0 comments on commit b5e934f

Please sign in to comment.