Skip to content

Commit

Permalink
Delete Postgres image if running on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
andyundso committed Jul 12, 2024
1 parent 0276f9d commit 17ba97a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ test_run() {

# Shut down containers from previous test runs
docker compose -f docker-compose-pgauto.yml down

# If running on CI, delete the Postgres Docker image to avoid space problems
if [ -n "$CI" ]; then
docker rmi -f $(docker images postgres -q)
fi
}

# Shut down containers from previous test runs
Expand Down

0 comments on commit 17ba97a

Please sign in to comment.