Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
What's new
4
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in
Toggle navigation
Menu
Open sidebar
gitlab-org
build
CNG
Commits
2a100480
Commit
2a100480
authored
Jun 16, 2021
by
Gerard Hickey
Browse files
Conditional removal of CE/EE suffix from commit ref
parent
577ea338
Changes
1
Hide whitespace changes
Inline
Side-by-side
build-scripts/push_to_redhat.rb
View file @
2a100480
...
...
@@ -61,8 +61,8 @@ if ARGV.length < 1
exit
1
end
#
A
dd `-ubi8` to the commit ref if not already present.
version
=
ARGV
[
0
]
#
Remove CE/EE suffix and a
dd `-ubi8` to the commit ref if not already present.
version
=
ARGV
[
0
]
.
sub
(
/-(ce|ee)$/
,
''
)
if
not
version
.
ends_with?
'-ubi8'
# we add `-ubi8` to find the UBI images.
version
+=
'-ubi8'
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment