From b4720d9201292d9827bb49a95a1cbe45a2c7484c Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Tue, 11 Oct 2022 09:52:33 +0200 Subject: [PATCH] gitlab-ci: fix reversed logic in docker push I got it backwards in 66d8b783f0cc4396a1ea80f989973b6063638ddc from !1183 --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5e9a47f1..232ec136 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -592,7 +592,7 @@ docker: - docker tag $TEST_IMAGE ${RELEASE_IMAGE}-bullseye - echo $CI_BUILD_TOKEN | docker login -u gitlab-ci-token --password-stdin registry.gitlab.com # This avoids filling up gitlab.com free tier accounts with unused docker images. - - if test -n "$FDROID_PUSH_DOCKER_IMAGE"; then + - if test -z "$FDROID_PUSH_DOCKER_IMAGE"; then echo "Skipping docker push to save quota on your gitlab namespace."; echo "If you want to enable the push, set FDROID_PUSH_DOCKER_IMAGE in"; echo "https://gitlab.com/$CI_PROJECT_NAMESPACE/fdroidserver/-/settings/ci_cd#js-cicd-variables-settings";