1
0
Fork 0

add cleanup step

This commit is contained in:
Massaki Archambault 2021-12-25 23:53:48 -05:00
parent e02f469b7b
commit 501696ea00
1 changed files with 10 additions and 0 deletions

View File

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