diff options
| author | Elizabeth Alexander Hunt <me@liz.coffee> | 2026-07-23 09:29:48 -0700 |
|---|---|---|
| committer | Elizabeth Alexander Hunt <me@liz.coffee> | 2026-07-23 09:29:48 -0700 |
| commit | 2708fc955a46cacd93869903eaab4321bd274226 (patch) | |
| tree | cef2c2e540bec16520eca84e2c73624b7222bc79 /.ci/ci.cjs | |
| parent | 22694944ced5aa4ae61caee1adb4415bd285c6d6 (diff) | |
| download | ci-2708fc955a46cacd93869903eaab4321bd274226.tar.gz ci-2708fc955a46cacd93869903eaab4321bd274226.zip | |
Thread through commit hash
Diffstat (limited to '.ci/ci.cjs')
| -rwxr-xr-x | .ci/ci.cjs | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -5053,10 +5053,12 @@ var BasePipelineBuilder = class { }; var DefaultGitHookPipelineBuilder = class extends BasePipelineBuilder { remoteUrl; + rev; refname; constructor(remoteUrl = process.env.remote, rev = process.env.rev, refname = process.env.refname) { super(); this.remoteUrl = remoteUrl; + this.rev = rev; this.refname = refname; this.addStage({ parallelJobs: [ @@ -5074,6 +5076,9 @@ var DefaultGitHookPipelineBuilder = class extends BasePipelineBuilder { getSourceDestination() { return this.remoteUrl.replace(".git", "").split("/").at(-1) ?? "src"; } + getRev() { + return this.rev; + } getBranch() { const branchRefPrefix = "refs/heads/"; return this.refname.split(branchRefPrefix).at(1); @@ -5113,7 +5118,8 @@ var getPipeline = () => { context: gitHookPipeline.getSourceDestination(), registry: REGISTRY, namespace: NAMESPACE, - imageTag: branch + imageTag: branch, + commit: gitHookPipeline.getRev() }; const baseCiPackageBuild = { type: "build_docker_image.js", |
