Remove cleanup stage from CI

This commit is contained in:
ErickSkrauch 2020-05-21 16:00:21 +03:00
parent dd588160b0
commit a9c3d50ad9
No known key found for this signature in database
GPG Key ID: 669339FCBB30EE0E

View File

@ -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