Skip to content

Commit

Permalink
GitHub isn't using alpine
Browse files Browse the repository at this point in the history
  • Loading branch information
grigorescu committed Jan 5, 2024
1 parent 8f57704 commit b246afc
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .ci-scripts/pytest_before.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b246afc

Please sign in to comment.