Skip to content

Commit

Permalink
Merge pull request #1 from themr0c/add-variables-in-makefile
Browse files Browse the repository at this point in the history
chore: added environment variables to the Makefile
  • Loading branch information
gbraad authored Dec 2, 2024
2 parents 834f8db + 79be944 commit 1ea8e75
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ DOCS_SERVE_CONTAINER ?= docker.io/httpd:alpine
DOCS_TEST_CONTAINER ?= docker.io/wjdp/htmltest:latest
DOCS_BUILD_TARGET ?= ./source/getting_started/master.adoc

CONTAINER_RUNTIME ?= podman
SELINUX_VOLUME_LABEL = :Z
ifeq ($(GOOS),darwin)
SELINUX_VOLUME_LABEL :=
endif

.PHONY: build_docs
build_docs:
${CONTAINER_RUNTIME} run -v $(CURDIR):/antora$(SELINUX_VOLUME_LABEL) --rm $(DOCS_BUILD_CONTAINER) --stacktrace antora-playbook.yml
Expand Down

0 comments on commit 1ea8e75

Please sign in to comment.