Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LHCbDIRAC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Anton Lu
LHCbDIRAC
Commits
4eee0b97
Commit
4eee0b97
authored
7 years ago
by
Christophe Haen
Browse files
Options
Downloads
Patches
Plain Diff
In gitlab-ci, take the releases.cfg in a different branch depending on the tag
parent
a372c6f4
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+4
-1
4 additions, 1 deletion
.gitlab-ci.yml
with
4 additions
and
1 deletion
.gitlab-ci.yml
+
4
−
1
View file @
4eee0b97
...
...
@@ -31,8 +31,11 @@ create_tarball:
-
tags
script
:
# Choose from which branch we should get the releases.cfg file
# We take it from devel if it is a pre release, otherwise master
-
BRANCH=$(echo $CI_COMMIT_TAG | grep -q pre; if [ $? -eq 0 ]; then echo "devel"; else echo "master"; fi)
# Get the releases.cfg from the devel branch
-
curl -L https://gitlab.cern.ch/lhcb-dirac/LHCbDIRAC/raw/
devel
/LHCbDIRAC/releases.cfg > releases.cfg
-
curl -L https://gitlab.cern.ch/lhcb-dirac/LHCbDIRAC/raw/
$BRANCH
/LHCbDIRAC/releases.cfg > releases.cfg
# This is how it was originaly retrieved....
#- git archive --remote ${CI_PROJECT_DIR} origin/devel LHCbDIRAC/releases.cfg | tar -x -v -f - --transform 's|^LHCbDIRAC/||' LHCbDIRAC/releases.cfg
# use the kerberos gitlab auth rather than ssh
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment