From 903ee43b2d03a134c612a424b895ec98cafa7afc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Wed, 28 Jun 2023 16:26:23 +0200 Subject: [PATCH] ci: Do not force-rebuild if an image with such tag exists --- .gitlab-ci.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index cb088a1f..fd03751e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -207,7 +207,6 @@ flatpak: - $CI_PIPELINE_SOURCE == "never" variables: GIT_STRATEGY: none # no need to pull the whole tree for rebuilding the image - FDO_FORCE_REBUILD: 1 # a list of packages to install FDO_DISTRIBUTION_PACKAGES: $LIBFPRINT_DEPENDENCIES @@ -217,14 +216,22 @@ flatpak: FDO_DISTRIBUTION_EXEC: | $LIBFPRINT_EXEC +.container_fedora_build_forced: + variables: + FDO_FORCE_REBUILD: 1 + container_fedora_build_schedule: - extends: .container_fedora_build_base + extends: + - .container_fedora_build_base + - .container_fedora_build_forced only: variables: - $CI_PIPELINE_SOURCE == "schedule" && $CRON_TASK == "BUILD_CI_IMAGES" container_fedora_build_manual: - extends: .container_fedora_build_base + extends: + - .container_fedora_build_base + - .container_fedora_build_forced only: variables: - $LIBFPRINT_CI_ACTION == "build-image"