From c8bc48b3c92ec815abfa300769730df57da0adfd Mon Sep 17 00:00:00 2001 From: Sudip Bhattarai Date: Tue, 20 Aug 2024 10:28:06 +0545 Subject: [PATCH] Cleanup all images after build --- .github/workflows/build-and-deploy-test-stack.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/build-and-deploy-test-stack.yml b/.github/workflows/build-and-deploy-test-stack.yml index 9f12f9a6a..e735e2c0c 100644 --- a/.github/workflows/build-and-deploy-test-stack.yml +++ b/.github/workflows/build-and-deploy-test-stack.yml @@ -59,6 +59,8 @@ jobs: # Execute the build-and-deploy.sh script cd $DEST_DIR/tests/test-infrastructure ./build-and-deploy.sh update-images + docker system prune + (docker image ls -q | xargs docker image rm --force ) || echo "Images cleaned-up" envs: GOVTOOL_TAG, GRAFANA_ADMIN_PASSWORD, GRAFANA_SLACK_RECIPIENT, GRAFANA_SLACK_OAUTH_TOKEN, SENTRY_DSN_BACKEND, GTM_ID, NPMRC_TOKEN, SENTRY_DSN_FRONTEND, PIPELINE_URL, USERSNAP_SPACE_API_KEY, APP_ENV, PDF_API_URL env: GOVTOOL_TAG: ${{ github.sha }}