Skip to content

Commit

Permalink
ci: Fall back to main branch on tag runs
Browse files Browse the repository at this point in the history
  • Loading branch information
wangenau committed Oct 28, 2024
1 parent c041d02 commit d53bf41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ docker:
script:
# Use sed to get the version since CI_COMMIT_TAG is only non-empty when triggered for tags
- VERSION=$(sed -n 's/^__version__ = "\(.*\)"/\1/p' eminus/version.py)
- docker build -t wangenau/eminus:"${VERSION}" --build-arg BRANCH=$CI_COMMIT_BRANCH .
- docker build -t wangenau/eminus:"${VERSION}" --build-arg BRANCH=${CI_COMMIT_BRANCH:-main} .
- docker run wangenau/eminus:"${VERSION}" bash -c "export OMP_NUM_THREADS=$(nproc);export MKL_NUM_THREADS=$(nproc);pytest"

##### Test the code installation after building #####
Expand Down

0 comments on commit d53bf41

Please sign in to comment.