mirror of
https://github.com/elyby/accounts.git
synced 2025-02-04 07:59:35 +05:30
Remove cleanup stage from CI
This commit is contained in:
parent
dd588160b0
commit
a9c3d50ad9
@ -4,7 +4,6 @@ stages:
|
|||||||
- prepare
|
- prepare
|
||||||
- testing
|
- testing
|
||||||
- build
|
- build
|
||||||
- cleanup
|
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
APP_IMAGE_NAME: "$CI_REGISTRY_IMAGE/app"
|
APP_IMAGE_NAME: "$CI_REGISTRY_IMAGE/app"
|
||||||
@ -153,23 +152,3 @@ Docker images:
|
|||||||
only:
|
only:
|
||||||
- master
|
- master
|
||||||
- tags
|
- 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