Commit 9b76e699 authored by Eric Williams's avatar Eric Williams
Browse files

Moves regex process to first publish step

parent f7de449e
Pipeline #393968570 passed with stages
in 1 minute and 55 seconds
......@@ -92,8 +92,8 @@ build_makedocsio:
@echo "Building"
$(DOCKER_COMMAND) $(IMAGE_TAG) $(BASH_CMD) '$(CMD)'
publish_post_process:
$(eval CMD := echo "Postprocessing" && \
publish_pre_process:
$(eval CMD := echo "Pre-processing" && \
sed -i -E "s/\$?SOURCE_URL\s?\=\s?.*/SOURCE_URL\=$(PROTOCOL)\:\/\/$(DOMAIN_NAME)/g" $(CONTENT_SITE_PATH)/*.sh && \
sed -i -E "s/\$?SOURCE_URL\s?\=\s?.*/\$`SOURCE_URL\ = \"$(PROTOCOL)\:\/\/$(DOMAIN_NAME)\"/g" $(CONTENT_SITE_PATH)/*.ps1 && \
sed -i -E "s/\$?VERSION\s?\=\s?.*/VERSION\=$(VERSION)/g" $(CONTENT_SITE_PATH)/*.sh && \
......@@ -105,10 +105,10 @@ publish_post_process:
sed -i -E "s/\$?COMMIT_HASH\s?\=\s?.*/COMMIT_HASH\=$(COMMIT_HASH)/g" $(REPO_ROOT)/mkdocs/*.sh && \
sed -i -E "s/\$?COMMIT_HASH\s?\=\s?.*/\$`COMMIT_HASH\=\"$(COMMIT_HASH)\"/g" $(REPO_ROOT)/mkdocs/*.ps1 \
)
@echo "Building"
@echo "Pre-processing"
$(DOCKER_COMMAND) $(IMAGE_TAG) $(BASH_CMD) '$(CMD)'
publish_all: publish_mkdocs publish_hugo publish_post_process publish_makedocsio
publish_all: publish_pre_process publish_mkdocs publish_hugo publish_makedocsio
$(eval CMD := cd $(REPO_ROOT)/public && sha256sum *-docs.* > checksum.txt)
$(DOCKER_COMMAND) $(IMAGE_TAG) $(BASH_CMD) '$(CMD)'
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment