From b246afcbb06e67dfd6a4e7cbd67f3f5d0665dc16 Mon Sep 17 00:00:00 2001 From: Vlad Grigorescu Date: Fri, 5 Jan 2024 16:48:55 -0600 Subject: [PATCH] GitHub isn't using alpine --- .ci-scripts/pytest_before.sh | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) 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