areguera / centos / centos.org

Forked from centos/centos.org 4 years ago
Clone
868f6d
THEME_VERSION := v2.51.1-beta.51
8b6dea
7c2ad4
all:
7c2ad4
7c2ad4
.PHONY: site-l10n
7c2ad4
site-l10n:
7c2ad4
	podman run --rm \
7c2ad4
		--name $@ \
7c2ad4
		-v $$PWD/src:/site:z \
7c2ad4
		-v $$PWD/public:/public:z \
7c2ad4
		--env JEKYLL_SOURCE_DIR=/site \
7c2ad4
		--env JEKYLL_PUBLIC_DIR=/public \
7c2ad4
		registry.gitlab.com/centos/artwork/centos-web/templates/jekyll-site-l10n:latest \
7c2ad4
		/usr/local/bin/page-locale.sh
7c2ad4
7c2ad4
.PHONY: site-server
62c526
site-server: clean
7c2ad4
	install -d public
7c2ad4
	podman run --rm -d \
7c2ad4
		--name $@ \
7c2ad4
		-v $$PWD/src:/site \
7c2ad4
		-v $$PWD/public:/public \
7c2ad4
		-p 0.0.0.0:4000:4000 \
8b6dea
		registry.gitlab.com/centos/artwork/centos-web/jekyll-theme-centos:${THEME_VERSION} \
7c2ad4
		bundle exec jekyll serve -H 0.0.0.0 -p 4000 --config /site/_config.yml -s /site -d /public
7c2ad4
7c2ad4
.PHONY: site
7c2ad4
site:
7c2ad4
	install -d public
7c2ad4
	podman run --rm \
7c2ad4
		--name $@ \
7c2ad4
		-v $$PWD/src:/site \
7c2ad4
		-v $$PWD/public:/public \
8b6dea
		registry.gitlab.com/centos/artwork/centos-web/jekyll-theme-centos:${THEME_VERSION} \
7c2ad4
		bundle exec jekyll build --config /site/_config.yml -s /site -d /public
7c2ad4
7c2ad4
.PHONY: clean
7c2ad4
clean:
7c2ad4
	$(RM) -r public
7c2ad4
	$(RM) -r public-ansible