forked from mystiq/dex
*: cleanup containers generated during tests to avoid deploy conflicts
This commit is contained in:
parent
263b933a34
commit
1210fb5d8f
2 changed files with 14 additions and 3 deletions
|
@ -34,6 +34,7 @@ script:
|
|||
- ./test-functional
|
||||
- DEX_TEST_DSN="sqlite3://:memory:" ./test-functional
|
||||
- ./build-docker
|
||||
- ./build-docker clean
|
||||
|
||||
deploy:
|
||||
provider: script
|
||||
|
|
16
build-docker
16
build-docker
|
@ -35,7 +35,17 @@ push() {
|
|||
docker push $repo:latest
|
||||
}
|
||||
|
||||
build
|
||||
if [[ "push" == "$1" ]]; then
|
||||
push
|
||||
clean() {
|
||||
docker rmi $repo:$version
|
||||
docker rmi $repo:latest
|
||||
}
|
||||
|
||||
if [[ "clean" == "$1" ]]; then
|
||||
clean
|
||||
else
|
||||
build
|
||||
if [[ "push" == "$1" ]]; then
|
||||
push
|
||||
fi
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue