Prune older images after successful deployment

This commit is contained in:
Keannu Bernasol 2024-09-07 13:51:26 +08:00
parent 7b2e422f35
commit 8f59eb9c14

View file

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