From 76e640c826429486fefab7dafe297e84cb83b557 Mon Sep 17 00:00:00 2001 From: Evangelos Ribeiro Tzaras Date: Thu, 17 Nov 2022 10:21:22 +0100 Subject: [PATCH] run-docker: Don't cache container images Without --no-cache newly "built" images end up just creating a new tag for old images, see below. $ podman images REPOSITORY TAG IMAGE ID CREATED SIZE registry.gitlab.gnome.org/gnome/calls/debian v0.0.20221013 a1c2d79e4f72 4 weeks ago 1.53 GB registry.gitlab.gnome.org/gnome/calls/debian v0.0.20221117 4d2a38aa5bff 3 months ago 2.01 GB registry.gitlab.gnome.org/gnome/calls/debian v0.0.20220817 4d2a38aa5bff 3 months ago 2.01 GB --- .gitlab-ci/run-docker.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitlab-ci/run-docker.sh b/.gitlab-ci/run-docker.sh index 4c32429..e29e6cd 100755 --- a/.gitlab-ci/run-docker.sh +++ b/.gitlab-ci/run-docker.sh @@ -107,6 +107,7 @@ if [ $build == 1 ]; then ${CMD} build \ ${format} \ --volume "$(pwd)/..:/home/user/app" \ + --no-cache \ --build-arg HOST_USER_ID="$UID" \ --tag "${TAG}" \ --file "${base}.Dockerfile" .