Skip to content
Snippets Groups Projects
Commit bbb8e9d0dfa9 authored by Georges Racinet's avatar Georges Racinet :squid:
Browse files

push-release: pushing tags to registry.h.n

We were originally conservative, avoiding growth in registry.h.n and
relying on garbage collection to do that. But now we have S3 backend
and Docker Hub is not the infinite space it used to be.
parent b80123cdf014
No related branches found
No related tags found
No related merge requests found
Pipeline #90366 waiting for manual action
......@@ -12,6 +12,9 @@
OCTOBUS_BASE_IMAGE = 'octobus/heptapod'
BASE_IMAGE = 'heptapod/heptapod'
HEPTAPOD_REGISTRY_BASE_IMAGE = (
'registry.heptapod.net/heptapod/omnibus-heptapod'
)
GITLAB_RAILS = '/opt/gitlab/embedded/service/gitlab-rails/'
......@@ -35,7 +38,7 @@
self.extra_repos = extra_repos
def docker_hub_base_image(self, base_image):
if self.podman:
if self.podman and len(base_image.split('/')) < 3:
return 'docker.io/' + base_image
return base_image
......@@ -85,7 +88,7 @@
tag_series=None,
):
full_image_tags = []
for base_image in (BASE_IMAGE, ):
for base_image in (BASE_IMAGE, HEPTAPOD_REGISTRY_BASE_IMAGE):
full_image_tags.append(
self.image_tag(label, stable_series=tag_series,
base_image=base_image)
......@@ -101,7 +104,7 @@
"""Promote the x-y-testing image to 'latest'."""
label = 'latest'
full_image_tags = []
for base_image in (BASE_IMAGE, ):
for base_image in (BASE_IMAGE, HEPTAPOD_REGISTRY_BASE_IMAGE):
full_image_tags.append(
self.image_tag(label, base_image=base_image)
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment