Skip to content

Commit

Permalink
update to support modern gitlab build env variables
Browse files Browse the repository at this point in the history
  • Loading branch information
leafo committed Dec 12, 2024
1 parent 0bdec4e commit 678ef13
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
1 change: 0 additions & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ build:linux:x86_64:
tags:
- linux
script:
- env
- npm ci --no-audit
- node release/build.js --os linux --arch x86_64
artifacts:
Expand Down
10 changes: 5 additions & 5 deletions release/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,13 +156,13 @@ async function main(args) {

let version = "head";
let builtAt = $$(`date +%s`);
if (process.env.CI_BUILD_TAG) {
version = process.env.CI_BUILD_TAG;
if (process.env.CI_COMMIT_TAG) {
version = process.env.CI_COMMIT_TAG;
} else if (
process.env.CI_BUILD_REF_NAME &&
process.env.CI_BUILD_REF_NAME !== "master"
process.env.CI_COMMIT_REF_NAME &&
process.env.CI_COMMIT_REF_NAME !== "master"
) {
version = process.env.CI_BUILD_REF_NAME;
version = process.env.CI_COMMIT_REF_NAME;
}

let bi = `github.com/itchio/butler/buildinfo`;
Expand Down

0 comments on commit 678ef13

Please sign in to comment.