Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Miroslav Kratochvil
jekyll-theme-lcsb-default
Commits
92b4dd88
Commit
92b4dd88
authored
Apr 09, 2020
by
Jacek Lebioda
Browse files
chore: ci/cd improvement
parent
fb7ffc76
Changes
2
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
92b4dd88
...
...
@@ -54,6 +54,7 @@ auto-tag:
-
chmod 644 ~/.ssh/known_hosts
variables
:
VERSION_FILE
:
"
lib/jekyll-theme-lcsb-default.rb"
REPOSITORY
:
"
ssh://git@git-r3lab-server.uni.lu:8022/core-services/jekyll-theme-lcsb-default.git"
TARGET_BRANCH
:
latest
script
:
# Make sure that it is on latest, otherwise exit. THIS IS A WORKAROUND, AS HAVING BOTH ONLY AND RULES IS NOT POSSIBLE
...
...
@@ -71,8 +72,11 @@ auto-tag:
# Create the tag
-
git tag -a $VERSION -m $VERSION
# Add SSH remote for accessing the repository
-
git remote add upstream $REPOSITORY
# Publish the tag
-
git push
origin
$VERSION
-
git push
upstream
$VERSION
# This will push the gem to ruby-gems when the repository has been tagged
release
:
...
...
lib/jekyll-theme-lcsb-default.rb
View file @
92b4dd88
# frozen_string_literal: true
# Note: keep the format of NUMBER.NUMBER.NUMBER (where NUMBER is [0-9]+)
# Note: keep the format of NUMBER.NUMBER.NUMBER (where NUMBER is [0-9]+)
;
# Otherwise Gitlab-CI could fail to detect the version (see .gitlab-ci.yml) and auto-tag the job
module
Theme
VERSION
=
"0.3.17"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment