Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Analyst WebApp
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
fidentis
Analyst WebApp
Commits
42d46ca2
There was an error fetching the commit references. Please try again later.
Commit
42d46ca2
authored
3 years ago
by
Radek Ošlejšek
Browse files
Options
Downloads
Patches
Plain Diff
Resolve "Update CI pipeline"
parent
ec13b772
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
+35
-4
35 additions, 4 deletions
.gitlab-ci.yml
with
35 additions
and
4 deletions
.gitlab-ci.yml
+
35
−
4
View file @
42d46ca2
...
...
@@ -11,7 +11,8 @@ stages:
-
build
-
test
-
document
-
publish
-
upload
-
release
# Builds code and generates documentation
build
:
...
...
@@ -70,9 +71,9 @@ test:
# expire_in: 1 hour
# when: on_success
#
publish release
when commiting to master and the VERSION.txt file has changed
publish
:
stage
:
publish
#
upload code to the web server
when commiting to master and the VERSION.txt file has changed
upload
:
stage
:
upload
image
:
ubuntu:latest
script
:
-
export VERSION=$(grep -oP '^([^\s]*)' $DEPLOYMENT_INFO_VERSION_FILE)
...
...
@@ -92,3 +93,33 @@ publish:
-
if
:
'
$CI_COMMIT_BRANCH'
when
:
never
# Make Gitlab release when a new version is uploaded:
release
:
stage
:
release
image
:
registry.gitlab.com/gitlab-org/release-cli:latest
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'
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