Skip to content

Commit 28e0e04

Browse files
authored
fix: Ignore docker image prune race in demo deploy (#2136)
docker image prune -f fails with "a prune operation is already running" when another prune is in flight (e.g. from a previous deploy or a cron job). This is a best-effort cleanup step - if it fails the deploy is still valid. Add || true so the step does not abort the pipeline. Co-authored-by: Ben Coombs <bjcoombs@users.noreply.github.com>
1 parent 35bd31a commit 28e0e04

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/deploy-demo.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ jobs:
229229
echo "All services running"
230230
231231
docker compose exec -T caddy caddy reload --config /etc/caddy/Caddyfile
232-
docker image prune -f
232+
docker image prune -f || true
233233
234234
- name: Ensure databases exist
235235
uses: appleboy/ssh-action@0ff4204d59e8e51228ff73bce53f80d53301dee2 # v1.2.5

0 commit comments

Comments
 (0)