Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
- name: Build Hugo site
run: |
# Build the site using the multi-platform Hugo image
docker run --rm -v $(pwd):/src hvishwanath/hugo:v0.123.7-ext-multiplatform \
docker run --rm -v $(pwd):/src:z hvishwanath/hugo:v0.123.7-ext-multiplatform \
--minify \
--destination output

Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ hugo-base-multi-platform: buildx-setup
# Build the static site using Docker
build:
docker pull $(DOCKER_IMAGE)
docker run --rm -v $(PWD):/src $(DOCKER_IMAGE) \
docker run --rm -v $(PWD):/src:z $(DOCKER_IMAGE) \
--minify \
--destination $(OUTPUT_DIR)

# Serve the site locally using Docker (development)
serve:
docker pull $(DOCKER_IMAGE)
docker run --rm -it -v $(PWD):/src -p 1313:1313 $(DOCKER_IMAGE) \
docker run --rm -it -v $(PWD):/src:z -p 1313:1313 $(DOCKER_IMAGE) \
server \
--bind 0.0.0.0 \
--destination $(OUTPUT_DIR) \
Expand Down
Loading