Skip to content

Commit

Permalink
Fallback to build if pull fails
Browse files Browse the repository at this point in the history
  • Loading branch information
tcamise-gpsw authored May 19, 2023
1 parent abe396b commit 8d9215e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ help: ## Display this help which is generated from Make goal comments
# Docker images are currently not public. So we build if pull fails for the local use case.
.PHONY: setup
setup:
-@docker-compose pull
@docker-compose build
-@docker-compose pull || docker-compose build

.PHONY: clean
clean: ## Clean cached jekyll files
Expand All @@ -43,6 +42,7 @@ build: ## Build site for deployment
.PHONY: tests
tests: setup
tests: ## Serve, then run link checker. Times out after 5 minutes.
-@docker-compose pull linkchecker || docker-compose build linkchecker
@echo COMMAND="-u http://jekyll:4998/ -b \"\" -p 4998 serve" > .env
@docker-compose --profile test up --abort-on-container-exit
@rm -rf .env
Expand Down

0 comments on commit 8d9215e

Please sign in to comment.