From 3e605e9dc04b5d304e460603a967ccfdce740f04 Mon Sep 17 00:00:00 2001 From: Javier Garcia Ordonez Date: Wed, 28 Aug 2024 18:37:51 +0200 Subject: [PATCH] fix GitHub ? --- .github/dockerhub_login.bash | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/dockerhub_login.bash b/.github/dockerhub_login.bash index e3a9fe1..29972d7 100755 --- a/.github/dockerhub_login.bash +++ b/.github/dockerhub_login.bash @@ -13,13 +13,13 @@ fi # check script needed variables if [ ! -v OWNER ]; then - echo "## ERROR: incorrect usage of CI. OWNER (e.g. dockerhub organization like {{ cookiecutter.default_docker_registry }} or user private name) not defined!" + echo "## ERROR: incorrect usage of CI. OWNER (e.g. dockerhub organization like itisfoundation or user private name) not defined!" exit 1 fi -# only upstream is allowed to push to {{ cookiecutter.default_docker_registry }} repo -if [ "${OWNER,,}" != "{{ cookiecutter.default_docker_registry }}" ] &&\ - { [ ! -v DOCKER_REGISTRY ] || [ -z "${DOCKER_REGISTRY}" ] || [ "$DOCKER_REGISTRY" = "{{ cookiecutter.default_docker_registry }}" ]; }; then +# only upstream is allowed to push to itisfoundation repo +if [ "${OWNER,,}" != "itisfoundation" ] &&\ + { [ ! -v DOCKER_REGISTRY ] || [ -z "${DOCKER_REGISTRY}" ] || [ "$DOCKER_REGISTRY" = "itisfoundation" ]; }; then echo "## ERROR: it is not allowed to push to the main dockerhub repository from a fork!" echo "## Please adapt your CI-defined environs (DOCKER_USERNAME, DOCKER_PASSWORD, DOCKER_REGISTRY)" exit 1