Skip to content

Commit b613696

Browse files
committed
fix(ci): remove image from registry if tests fail
1 parent ea588e2 commit b613696

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.gitlab-ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ cache:
3232
- pip install poetry
3333
- poetry --version
3434
- poetry config virtualenvs.in-project true
35-
- poetry install --with dev,sdd,eval
35+
- poetry install --extras all --with dev
3636

3737
.test-template: &test
3838
<<: *install-deps
@@ -83,7 +83,7 @@ docker-test:
8383
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
8484
script:
8585
- docker pull $IMAGE_TAG
86-
- docker run --rm $IMAGE_TAG pytest
86+
- docker run --rm $IMAGE_TAG pytest || (docker rmi $IMAGE_TAG && exit 1)
8787
only:
8888
- tags
8989
tags:

0 commit comments

Comments
 (0)