Skip to content

Commit 20734b6

Browse files
committed
Clean up extra public files and Docker images
1 parent bf84e8a commit 20734b6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

deploy.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,7 @@ set -eu
66
git pull
77
# Update submodules such as the template.
88
git submodule update --init
9-
# Run Hugo using the image
10-
docker compose run -v "$(pwd)/public":/workdir/public site 'hugo'
9+
# Run Hugo using the image. Extra files in `public/` will be removed.
10+
docker compose run --remove-orphans --rm \
11+
-v "$(pwd)/public":/workdir/public site \
12+
hugo --cleanDestinationDir

0 commit comments

Comments
 (0)