fix(docker): Fix Dockerfile dependency sorting and enhance environment variable handling for GitHub repos

This commit is contained in:
2024-11-17 00:32:56 +01:00
parent e9e8acafe4
commit e38cc40f11
7 changed files with 6650 additions and 3178 deletions

View File

@@ -9,10 +9,10 @@ export class NpmciEnv {
constructor(npmciRefArg: Npmci) {
this.npmciRef = npmciRefArg;
if (process.env.GITLAB_CI) {
if (!this.repoString && process.env.GITLAB_CI) {
this.repoString = process.env.CI_REPOSITORY_URL;
}
if (process.env.NPMCI_COMPUTED_REPOURL) {
if (!this.repoString && process.env.NPMCI_COMPUTED_REPOURL) {
this.repoString = process.env.NPMCI_COMPUTED_REPOURL;
}
if (!this.repoString) {