Skip to content

Commit

Permalink
restore env
Browse files Browse the repository at this point in the history
  • Loading branch information
FelixTJDietrich committed Dec 6, 2024
1 parent fabc3bf commit e2802c8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/deploy-docker-compose-shared.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,13 @@ jobs:
# Check if docker-compose.prod.yml exists
if [ -f "$COMPOSE_FILE" ]; then
echo "$COMPOSE_FILE found."
docker compose -f "$COMPOSE_FILE" down --remove-orphans --rmi all
# Check if .env exists
if [ -f ".env" ]; then
docker compose -f "$COMPOSE_FILE" --env-file=".env" down --remove-orphans --rmi all
else
docker compose -f "$COMPOSE_FILE" down --remove-orphans --rmi all
fi
else
echo "$COMPOSE_FILE does not exist. Skipping docker compose down."
fi
Expand Down

0 comments on commit e2802c8

Please sign in to comment.