Skip to content

Commit ae57423

Browse files
committed
updated cleanup
1 parent 4a76954 commit ae57423

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

.gitlab-ci.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ before_script:
2121
- echo "Building image"
2222
- echo ${STACK_PHP_IMAGE}
2323

24+
after_script:
25+
- export ISOLATION=buildpipeline${CI_PIPELINE_ID}
26+
- export COMPOSE_PROJECT_NAME=${ISOLATION}${CI_BUILD_NAME}
27+
- docker-compose down -v
2428

2529

2630
build:php:
@@ -133,12 +137,3 @@ release:php-alpine-nginx-xdebug:latest:
133137
- docker login --username ${REGISTRY_USER} --password ${REGISTRY_PASS} ${REGISTRY_HOST}
134138
- docker tag ${STACK_PHP_IMAGE}-alpine-nginx-xdebug ${REGISTRY_PHP_IMAGE}-alpine-nginx-xdebug
135139
- docker push ${REGISTRY_PHP_IMAGE}-alpine-nginx-xdebug
136-
137-
138-
139-
cleanup:
140-
stage: cleanup
141-
script:
142-
- docker-compose kill
143-
- docker-compose rm -fv --all
144-
- docker-compose down --rmi local --volumes

0 commit comments

Comments
 (0)