Commit 358c31a5 authored by David Blyth's avatar David Blyth

Merge branch 'ci_cleanup' into 'master'

Gitlab CI: added docker build cleanup job

See merge request !5
parents bd3c5637 055f0cde
Pipeline #28 passed with stages
in 1 second
before_script: before_script:
- docker info - docker info
- build
- build_cleanup
build_test: build_test:
script: stage: build
- docker build -t argonneeic/base:$CI_COMMIT_REF_NAME --build-arg BUILD_THREADS=20 . script:
except: - docker build -t argonneeic/base:$CI_COMMIT_REF_NAME --build-arg BUILD_THREADS=20 .
- master except:
- master
build_latest: build_latest:
script: stage: build
- docker build -t argonneeic/base --build-arg BUILD_THREADS=20 . script:
only: - docker build -t argonneeic/base --build-arg BUILD_THREADS=20 .
- master only:
- master
stage: build_cleanup
- docker rm $(docker ps -qa --no-trunc --filter "status=exited")
when: on_failure
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