Skip to content
Snippets Groups Projects
Commit 4cc13e1c authored by Radek Ošlejšek's avatar Radek Ošlejšek
Browse files

Update .gitlab-ci.yml

parent a1f16612
No related branches found
No related tags found
No related merge requests found
......@@ -12,7 +12,7 @@ stages:
- test
- document
- upload
- release
# - release
# Builds code and generates documentation
build:
......@@ -94,34 +94,34 @@ upload:
when: never
# Make Gitlab release when a new version is uploaded:
release:
stage: release
image: registry.gitlab.com/gitlab-org/release-cli:latest
tags:
- shared-fi
needs:
- job: upload
rules:
- if: '$CI_COMMIT_BRANCH == "master"'
changes:
- VERSION.txt
- if: '$CI_COMMIT_BRANCH'
when: never
script:
- export VERSION=$(grep -oP '^([^\s]*)' $DEPLOYMENT_INFO_VERSION_FILE)
- export TAG_MESSAGE=$(grep -oP '(?<=\s)[^\s].*' $DEPLOYMENT_INFO_VERSION_FILE)
release:
name: 'Release $VERSION'
description: 'Created using the release-cli $TAG_MESSAGE'
tag_name: '$VERSION'
ref: '$VERSION'
# milestones:
assets:
links:
- name: 'Application'
url: 'https://radek-oslejsek.cz/download/fidentis-analyst/FIDENTIS-Analyst-app-$VERSION.zip'
- name: 'Data'
url: 'https://radek-oslejsek.cz/download/fidentis-analyst/FIDENTIS-Analyst-data.zip'
- name: 'Documentation'
url: 'https://www.radek-oslejsek.cz/download/fidentis-analyst/apidocs/index.html'
#release:
# stage: release
# image: registry.gitlab.com/gitlab-org/release-cli:latest
# tags:
# - shared-fi
# needs:
# - job: upload
# rules:
# - if: '$CI_COMMIT_BRANCH == "master"'
# changes:
# - VERSION.txt
# - if: '$CI_COMMIT_BRANCH'
# when: never
# script:
# - export VERSION=$(grep -oP '^([^\s]*)' $DEPLOYMENT_INFO_VERSION_FILE)
# - export TAG_MESSAGE=$(grep -oP '(?<=\s)[^\s].*' $DEPLOYMENT_INFO_VERSION_FILE)
# release:
# name: 'Release $VERSION'
# description: 'Created using the release-cli $TAG_MESSAGE'
# tag_name: '$VERSION'
# ref: '$VERSION'
## milestones:
# assets:
# links:
# - name: 'Application'
# url: 'https://radek-oslejsek.cz/download/fidentis-analyst/FIDENTIS-Analyst-app-$VERSION.zip'
# - name: 'Data'
# url: 'https://radek-oslejsek.cz/download/fidentis-analyst/FIDENTIS-Analyst-data.zip'
# - name: 'Documentation'
# url: 'https://www.radek-oslejsek.cz/download/fidentis-analyst/apidocs/index.html'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment