Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
LISA Instrument
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LISA Simulation
LISA Instrument
Commits
a0faef3d
Commit
a0faef3d
authored
2 years ago
by
Jean-Baptiste Bayle
Browse files
Options
Downloads
Plain Diff
Merge branch '111-fix-automatic-versioning-and-latest-tagging' into 'master'
Resolve "Fix automatic versioning and latest tagging" Closes
#111
See merge request
!139
parents
e9c7474b
10a9764f
No related branches found
No related tags found
1 merge request
!139
Resolve "Fix automatic versioning and latest tagging"
Pipeline
#204094
passed
2 years ago
Stage: test
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+13
-7
13 additions, 7 deletions
.gitlab-ci.yml
with
13 additions
and
7 deletions
.gitlab-ci.yml
+
13
−
7
View file @
a0faef3d
...
...
@@ -10,7 +10,9 @@ stages:
before_script
:
-
pip install -r requirements.txt
-
pip install .
variables
:
GIT_LFS_SKIP_SMUDGE
:
1
cache
:
paths
:
...
...
@@ -21,7 +23,10 @@ pylint:
-
pylint lisainstrument
pytest
:
variables
:
GIT_LFS_SKIP_SMUDGE
:
0
script
:
-
pip install .
-
python -m pytest -v --junitxml=report.xml
artifacts
:
reports
:
...
...
@@ -39,14 +44,15 @@ dist:
tag-latest
:
stage
:
deploy
image
:
alpine/git
script
:
image
:
datamachines/git-lfs
before_script
:
-
git config http.sslverify
false
-
git config user.email "${GITLAB_USER_EMAIL}"
-
git config user.name "${GITLAB_USER_NAME}"
-
git remote
add tag-
origin https://
oauth2
:${GITLAB_
ACCESS
_TOKEN}@
gitlab.in2p3.fr
/${CI_PROJECT_PATH}
-
git push --delete tag-origin latest
-
git tag latest
-
git push
tag-
origin latest
-
git remote
set-url
origin https://
gitlab-ci
:${GITLAB_
CI
_TOKEN}@
${CI_SERVER_HOST}
/${CI_PROJECT_PATH}
.git
script
:
-
git tag
--force
latest
-
git push
--force
origin latest
rules
:
-
if
:
'
$CI_COMMIT_TAG
=~
/^v\d+(?:\.\d+){0,2}$/'
...
...
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