From 2d5d98fe32c30cd184d0b28f121c1e3982b9fccc Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Thu, 8 Sep 2022 17:51:23 +0200 Subject: [PATCH] gitlab-ci: stop tags/branches overwriting buildserver docker image https://gitlab.com/fdroid/fdroidserver/-/jobs/2988110595 https://gitlab.com/eighthave/fdroidserver/-/jobs/2997738047 --- .gitlab-ci.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2278c408..6edcb467 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -560,6 +560,10 @@ pages: - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH' # only publish pages on default (master) branch +# This job pushes the official CI docker image based on the master +# branch, so in fdroid/fdroidserver, it should only run on the master +# branch. Otherwise, tags or other branches will overwrite the docker +# image which is supposed to be what is in master. docker: dependencies: - fdroid build @@ -568,6 +572,8 @@ docker: - .gitlab-ci.yml - makebuildserver - buildserver/* + variables: + - $CI_COMMIT_BRANCH == "master" || $CI_PROJECT_NAMESPACE != "fdroid" image: docker:git services: - docker:dind