From 6e3c5ccac77714be70c0dc52c5210c7cda8fe40f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= Date: Tue, 21 Feb 2023 17:48:50 +0000 Subject: containers: publish to 'latest' tag instead of 'master' MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Historically we use the CI_COMMIT_REF_SLUG for the docker tag, which is the branch name. This meant that when testing container builds from non-default tags/branches we didn't pollute the primary published content. When we switched to use merge requests for triggering CI in: commit 7a7402d259db6e75b2a6fbb1523b42a2d18fabfa Author: Daniel P. Berrangé Date: Thu Feb 10 17:43:56 2022 +0000 gitlab: switch to trigger jobs against the merge request by default we stopped publishing containers for anything except a push to the default branch. As such there's no reason to use CI_COMMIT_REF_SLUG, we can just use a fixed tag name. The docker default is to use ':latest', so adopt that instead of ':master'. Signed-off-by: Daniel P. Berrangé --- containers/black/README.rst | 2 +- containers/cargo-fmt/README.rst | 2 +- containers/clang-format/README.rst | 2 +- containers/flake8/README.rst | 2 +- containers/go-fmt/README.rst | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) (limited to 'containers') diff --git a/containers/black/README.rst b/containers/black/README.rst index 2de2d0d..61d6d20 100644 --- a/containers/black/README.rst +++ b/containers/black/README.rst @@ -18,7 +18,7 @@ or adding the following snippet to ``.gitlab-ci.yml`` black: stage: sanity_checks - image: registry.gitlab.com/libvirt/libvirt-ci/black:master + image: registry.gitlab.com/libvirt/libvirt-ci/black:latest needs: [] script: - /black diff --git a/containers/cargo-fmt/README.rst b/containers/cargo-fmt/README.rst index 9bffeb1..c2ca802 100644 --- a/containers/cargo-fmt/README.rst +++ b/containers/cargo-fmt/README.rst @@ -18,7 +18,7 @@ or adding the following snippet to ``.gitlab-ci.yml`` cargo-fmt: stage: sanity_checks - image: registry.gitlab.com/libvirt/libvirt-ci/cargo-fmt:master + image: registry.gitlab.com/libvirt/libvirt-ci/cargo-fmt:latest needs: [] script: - /cargo-fmt diff --git a/containers/clang-format/README.rst b/containers/clang-format/README.rst index 8f20ddb..88daf17 100644 --- a/containers/clang-format/README.rst +++ b/containers/clang-format/README.rst @@ -18,7 +18,7 @@ or adding the following snippet to ``.gitlab-ci.yml`` clang-format: stage: sanity_checks - image: registry.gitlab.com/libvirt/libvirt-ci/clang-format:master + image: registry.gitlab.com/libvirt/libvirt-ci/clang-format:latest needs: [] script: - /clang-format diff --git a/containers/flake8/README.rst b/containers/flake8/README.rst index d4b4461..22a6256 100644 --- a/containers/flake8/README.rst +++ b/containers/flake8/README.rst @@ -18,7 +18,7 @@ or adding the following snippet to ``.gitlab-ci.yml`` flake8: stage: sanity_checks - image: registry.gitlab.com/libvirt/libvirt-ci/flake8:master + image: registry.gitlab.com/libvirt/libvirt-ci/flake8:latest needs: [] script: - /flake8 diff --git a/containers/go-fmt/README.rst b/containers/go-fmt/README.rst index 0af6998..132c776 100644 --- a/containers/go-fmt/README.rst +++ b/containers/go-fmt/README.rst @@ -10,7 +10,7 @@ the following snippet to ``.gitlab-ci.yml`` go-fmt: stage: prebuild - image: registry.gitlab.com/libvirt/libvirt-ci/go-fmt:master + image: registry.gitlab.com/libvirt/libvirt-ci/go-fmt:latest script: - /go-fmt artifacts: -- cgit v1.1