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