Commit f62c3513 authored by eric pellegrini's avatar eric pellegrini

Added clean stage in gitlab YAML

parent e102d3e4
Pipeline #3782 canceled with stages
in 2 minutes and 3 seconds
stages: stages:
- ci - ci
- deploy - deploy
- clean
############################ ############################
# ubuntu trusty pipeline # ubuntu trusty pipeline
...@@ -198,3 +199,15 @@ deploy:windows: ...@@ -198,3 +199,15 @@ deploy:windows:
- sci - sci
- windows-10 - windows-10
clean_docker:
stage: clean
when: always
script:
- docker rm `docker ps -q -f "status=exited"`
- docker images -a --format "{{.Repository}}:{{.Tag}}" | grep mdanse | xargs docker rmi -f
- docker rmi `docker images -q -f "dangling=true"`
tags:
- docker
- sci
- ubuntu
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment