Gitlab migration complete. If you have any issue please read the FAQ.

Commit fd3e2e26 authored by Jacek Lebioda's avatar Jacek Lebioda
Browse files

Merge branch 'fix-ci' into 'latest'

chore: ci/cd improvement

See merge request core-services/jekyll-theme-lcsb-default!41
parents fb7ffc76 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:
......
# 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"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment