Skip to content

Commit

Permalink
GitLab CI: add parameter for main branch in jsonnet package build
Browse files Browse the repository at this point in the history
Signed-off-by: Roman Ondráček <mail@romanondracek.cz>
  • Loading branch information
Roman3349 committed Jan 26, 2024
1 parent cf587b3 commit 7547f37
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .gitlab/packages.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ local deployPackageJob(variant, stability) = image + {
if stability == 'devel' then {
except: ['tags'],
only: {
refs: ['master'],
refs: [options.mainBranch],
},
script: [
stabilityEnvironmentVars(stability),
Expand Down Expand Up @@ -151,4 +151,3 @@ if stability == 'devel' then {
for variant in variants
for stability in ['devel', 'release']
}

2 changes: 2 additions & 0 deletions .gitlab/packages/options.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,6 @@
deployServer: 'www-deploy@icinga.iqrf.org',
// Deployment base URL
deployBaseUrl: 'https://dl.iqrf.org/iqrf-gateway-webapp/',
// Main branch
mainBranch: 'master',
}

0 comments on commit 7547f37

Please sign in to comment.