Commit 6cc29ea0 authored by Bhushan Shah's avatar Bhushan Shah

invent: run cleanup in after_script

also make docker build manual action
parent 4f8065bd
Pipeline #366 passed with stage
in 8 minutes and 33 seconds
......@@ -5,26 +5,9 @@ kdeorg/appimage-base:
variables:
CONTAINER_IMAGE: kdeorg/appimage-base
DOCKERFILE_PATH: system-images/appimage-base
only:
variables:
- $BUILD_IMAGE == "appimage-base"
kdeorg/staticweb:
extends: .docker
variables:
CONTAINER_IMAGE: kdeorg/staticweb
DOCKERFILE_PATH: system-images/static-websites
only:
variables:
- $BUILD_IMAGE == "staticweb"
cleanup:
allow_failure: true
stage: cleanup
tags:
- docker
script:
- docker images -qf dangling=true | xargs docker rmi
only:
variables:
- $BUILD_IMAGE
......@@ -4,7 +4,10 @@ stages:
.docker:
stage: build
when: manual
tags:
- docker
script:
- docker build -t $CONTAINER_IMAGE --no-cache=true --pull=true $DOCKERFILE_PATH
after_script:
- docker images -qf dangling=true | xargs docker rmi || true
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