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