We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9230ad4 commit 4397073Copy full SHA for 4397073
tests/test_docker.sh
@@ -5,11 +5,26 @@
5
6
set -o errexit
7
set -x
8
+set -e
9
+
10
+finish() {
11
+ # Your cleanup code here
12
+ docker compose -f docker-compose.local.yml down --remove-orphans
13
+ docker volume rm my_awesome_project_my_awesome_project_local_postgres_data
14
15
+}
16
+# the cleanup doesn't work in the github actions
17
+if [ -z "$GITHUB_ACTIONS" ]; then
18
+ trap finish EXIT
19
+fi
20
21
22
# create a cache directory
23
mkdir -p .cache/docker
24
cd .cache/docker
25
26
+sudo rm -rf my_awesome_project
27
28
# create the project using the default settings in cookiecutter.json
29
uv run cookiecutter ../../ --no-input --overwrite-if-exists use_docker=y "$@"
30
cd my_awesome_project
0 commit comments