From a9c3d50ad9dd3082b2ede0e7cd3b83992e4d2414 Mon Sep 17 00:00:00 2001 From: ErickSkrauch Date: Thu, 21 May 2020 16:00:21 +0300 Subject: [PATCH] Remove cleanup stage from CI --- .gitlab-ci.yml | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0cc9584..950a9bb 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -4,7 +4,6 @@ stages: - prepare - testing - build - - cleanup variables: APP_IMAGE_NAME: "$CI_REGISTRY_IMAGE/app" @@ -153,23 +152,3 @@ Docker images: only: - master - tags - -################# -# Cleanup stage # -################# - -Remove Docker images: - stage: cleanup - 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 - - docker rmi "$DB_LATEST_IMAGE_NAME" "$DB_VERSIONED_IMAGE_NAME" || true - when: always - only: - - master - - tags