Skip to content

Commit

Permalink
fix: move set -e after docker rmi which is ok to fail
Browse files Browse the repository at this point in the history
  • Loading branch information
danielgrittner committed Aug 21, 2024
1 parent 0dc8305 commit 302d034
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docker/release_images.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
#!/bin/bash

# Stop execution on any error
set -e
set -x


if command -v docker-compose &> /dev/null
then
COMPOSE_CMD="docker-compose"
Expand All @@ -22,6 +17,11 @@ for i in "${!services[@]}"; do
done


# Stop execution on any error (Note: we use set -e because docker rmi might fail because the image does not exist which is okay)
set -e
# set -x


for i in "${!services[@]}"; do
service=${services[$i]}
context=${contexts[$i]}
Expand Down

0 comments on commit 302d034

Please sign in to comment.