OSDN Git Service

gitlab: stable staging branches publish containers in a separate tag
authorDaniel P. Berrangé <berrange@redhat.com>
Thu, 8 Jun 2023 16:40:16 +0000 (17:40 +0100)
committerThomas Huth <thuth@redhat.com>
Mon, 26 Jun 2023 06:58:02 +0000 (08:58 +0200)
commite28112d00703abd136e2411d23931f4f891c9244
treeb22a20cd6e592b9f3983ef8d69b33303f6437ade
parent1ddd2ff9cd873dd7d634a0b6296e91c6583b47e3
gitlab: stable staging branches publish containers in a separate tag

If the stable staging branches publish containers under the 'latest' tag
they will clash with containers published on the primary staging branch,
as well  as with each other. This introduces logic that overrides the
container tag when jobs run against the stable staging branches.

The CI_COMMIT_REF_SLUG variable we use expands to the git branch name,
but with most special characters removed, such that it is valid as a
docker tag name. eg 'staging-8.0' will get a slug of 'staging-8-0'

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Michael Tokarev <mjt@tls.msk.ru>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Message-Id: <20230608164018.2520330-4-berrange@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
.gitlab-ci.d/base.yml