Skip to content
Snippets Groups Projects
Verified Commit c7eab2f6 authored by Alexander Olofsson's avatar Alexander Olofsson
Browse files

Clean up extracted CI information

parent 36469d22
Branches
Tags
No related merge requests found
Pipeline #111011 passed
...@@ -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="$GEMVERSION" CI_RUBY_GEMVERSION="${GEMNAME#*-}"
EOF EOF
cat variables.env cat variables.env
artifacts: artifacts:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment