Skip to content

Commit

Permalink
cleanup after app run
Browse files Browse the repository at this point in the history
  • Loading branch information
stavros-k committed May 2, 2024
1 parent 5615b63 commit f8d8fc4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/install-docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
run: |
for values_file in ix-dev/${{ matrix.app }}/ci/*.yaml; do
echo "Testing [$values_file]"
./main.py $values_file ix-dev/${{ matrix.app }} > docker-compose.yaml
sudo ./main.py $values_file ix-dev/${{ matrix.app }} > docker-compose.yaml
# Print the parsed, by compose, template
# (as it will also remove empty lines)
Expand All @@ -83,4 +83,8 @@ jobs:
docker compose -p $PROJECT_NAME -f docker-compose.yaml down --remove-orphans --volumes
docker compose -p $PROJECT_NAME -f docker-compose.yaml rm --force --stop --volumes
# Clean up the test directory used by the app
echo "Cleaning up /mnt/test directory"
sudo rm -r /mnt/test || echo "Failed to clean up /mnt/test"
done

0 comments on commit f8d8fc4

Please sign in to comment.