From 0dc8ca8c78e1655eb953e95da8ab0ddc8d36bd45 Mon Sep 17 00:00:00 2001 From: ErickSkrauch Date: Tue, 5 Nov 2019 15:31:23 +0300 Subject: [PATCH] Define vars for cleanup step --- .gitlab-ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 61a42ff..2b0d718 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -161,6 +161,8 @@ Remove Docker images: image: docker:19.03.2 variables: GIT_STRATEGY: none + before_script: + - *defineVars script: - docker rmi "$APP_LATEST_IMAGE_NAME" "$APP_VERSIONED_IMAGE_NAME" || true - docker rmi "$WEB_LATEST_IMAGE_NAME" "$WEB_VERSIONED_IMAGE_NAME" || true