diff --git a/.ci-scripts/pytest_before.sh b/.ci-scripts/pytest_before.sh index c2b7180f..1521a000 100755 --- a/.ci-scripts/pytest_before.sh +++ b/.ci-scripts/pytest_before.sh @@ -2,9 +2,15 @@ set -e -apk add make -docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY -export COMPOSE_PROJECT_NAME=$CI_PIPELINE_ID +if [ -z "${CI_REGISTRY}" ]; then + # GitHub uses Ubuntu + apk add make + docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY + export COMPOSE_PROJECT_NAME=$CI_PIPELINE_ID +else + export COMPOSE_PROJECT_NAME=$GITHUB_REPOSITORY +fi + .ci-scripts/pull_images.sh make build .ci-scripts/push_images.sh