mirror of
https://github.com/lemeow125/DRF_Template.git
synced 2024-11-16 19:59:24 +08:00
Prune older images after successful deployment
This commit is contained in:
parent
7b2e422f35
commit
8f59eb9c14
1 changed files with 2 additions and 1 deletions
|
@ -28,5 +28,6 @@ steps:
|
|||
docker image rm "$IMAGE" || true;
|
||||
docker volume rm "$VOLUME" || true;
|
||||
docker pull "$IMAGE";
|
||||
docker compose -f docker-compose.demo.yml up -d;"
|
||||
docker compose -f docker-compose.demo.yml up -d;
|
||||
docker image prune -af;"
|
||||
secrets: [SSH_KEY, REMOTE_HOST, PROJECT_DIRECTORY, IMAGE, VOLUME]
|
||||
|
|
Loading…
Reference in a new issue