lib/gitlab/qa/release.rb in gitlab-qa-1.0.1 vs lib/gitlab/qa/release.rb in gitlab-qa-2.0.0
- old
+ new
@@ -3,10 +3,11 @@
class Release
CANONICAL_REGEX = /\A(?<edition>ce|ee):?(?<tag>.+)?/i
CUSTOM_GITLAB_IMAGE_REGEX = %r{/gitlab-(?<edition>[ce]e):(?<tag>.+)\z}
DEFAULT_TAG = 'latest'.freeze
DEFAULT_CANONICAL_TAG = 'nightly'.freeze
+ DEV_REGISTRY = 'dev.gitlab.org:5005'.freeze
attr_reader :release
attr_writer :tag
def initialize(release)
@@ -68,9 +69,13 @@
end
end
def qa_tag
tag.sub(/\.([ce]e)/, '-\1').sub(/\.(\d+)\z/, '')
+ end
+
+ def dev_gitlab_org?
+ image.start_with?(DEV_REGISTRY)
end
private
def canonical?