mirror of
https://github.com/elyby/accounts.git
synced 2025-01-11 06:22:16 +05:30
Remove cleanup stage from CI
This commit is contained in:
parent
dd588160b0
commit
a9c3d50ad9
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user