add cleanup step
This commit is contained in:
parent
e02f469b7b
commit
501696ea00
10
.drone.yml
10
.drone.yml
|
@ -54,6 +54,16 @@ steps:
|
||||||
from_secret: docker_username
|
from_secret: docker_username
|
||||||
DOCKER_PASSWORD:
|
DOCKER_PASSWORD:
|
||||||
from_secret: docker_password
|
from_secret: docker_password
|
||||||
|
- name: cleanup
|
||||||
|
image: curlimages/curl
|
||||||
|
commands:
|
||||||
|
- curl -u "$DOCKER_USERNAME:$DOCKER_PASSWORD" -X "DELETE" https://cloud.docker.com/v2/repositories/${DRONE_REPO}/tags/${DRONE_COMMIT_SHA:0:8}-arm64
|
||||||
|
- curl -u "$DOCKER_USERNAME:$DOCKER_PASSWORD" -X "DELETE" https://cloud.docker.com/v2/repositories/${DRONE_REPO}/tags/${DRONE_COMMIT_SHA:0:8}-amd64
|
||||||
|
environment:
|
||||||
|
DOCKER_USERNAME:
|
||||||
|
from_secret: docker_username
|
||||||
|
DOCKER_PASSWORD:
|
||||||
|
from_secret: docker_password
|
||||||
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- build-arm64
|
- build-arm64
|
||||||
|
|
Reference in New Issue