Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
ruby-liudesk-cmdb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LiU IT - Infrastructure
ruby-liudesk-cmdb
Commits
c7eab2f6
Verified
Commit
c7eab2f6
authored
1 year ago
by
Alexander Olofsson
Browse files
Options
Downloads
Patches
Plain Diff
Clean up extracted CI information
parent
36469d22
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Pipeline
#111011
passed
1 year ago
Stage: test
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+3
-4
3 additions, 4 deletions
.gitlab-ci.yml
with
3 additions
and
4 deletions
.gitlab-ci.yml
+
3
−
4
View file @
c7eab2f6
...
@@ -43,14 +43,13 @@ gemfile:
...
@@ -43,14 +43,13 @@ gemfile:
script
:
script
:
-
gem build liudesk_cmdb.gemspec
-
gem build liudesk_cmdb.gemspec
-
|
-
|
#
Generate release
info
#
Extract gem
info
GEMFILE="$(ls -1 liudesk_cmdb-*.gem)"
GEMFILE="$(ls -1 liudesk_cmdb-*.gem)"
GEMNAME="$(basename -s '.gem' "${GEMFILE}")"
GEMNAME="$(basename -s '.gem' "${GEMFILE}")"
GEMVERSION="${GEMNAME#*-}"
cat <<EOF > variables.env
cat <<EOF > variables.env
CI_RUBY_GEMFILE="$GEMFILE"
CI_RUBY_GEMFILE="$GEMFILE"
CI_RUBY_GEMNAME="$GEMNAME"
CI_RUBY_GEMNAME="$
{
GEMNAME
%%-*}
"
CI_RUBY_VERSION="$GEM
VERSION
"
CI_RUBY_
GEM
VERSION="$
{
GEM
NAME#*-}
"
EOF
EOF
cat variables.env
cat variables.env
artifacts
:
artifacts
:
...
...
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