Skip to content

Commit

Permalink
Merge pull request #36 from esnet-security/topic/vlad/cleanup
Browse files Browse the repository at this point in the history
Gitlab CI: Add a cleanup stage
  • Loading branch information
grigorescu authored Apr 23, 2024
2 parents 62047a6 + 8e9eeb6 commit 5a527ca
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ include:
stages:
- lint
- test
- cleanup

variables:
POSTGRES_USER: scram
Expand Down Expand Up @@ -38,8 +39,6 @@ pytest:
- make run
script:
- make coverage.xml
after_script:
- make clean
artifacts:
reports:
coverage_report:
Expand All @@ -60,3 +59,17 @@ code_quality_html:

sast:
stage: test

final_clean:
image: docker:24.0.6-dind
services:
- docker:dind
before_script:
- apk add make
- export COMPOSE_PROJECT_NAME=$CI_PIPELINE_ID
stage: cleanup
rules:
- when: always # run even if something failed
script:
- make stop
- make clean

0 comments on commit 5a527ca

Please sign in to comment.