feat(makefile): add capability to skip Docker image pull (#1463)

* feat(makefile): add capability to skip Docker image pull

* ci(github-actions): add conditional Docker installation based on ENV variable
This commit is contained in:
Arno.Edwards
2024-05-01 21:01:11 +08:00
committed by GitHub
parent 1c7cdbefdd
commit 442ab7371c
2 changed files with 13 additions and 0 deletions

View File

@@ -22,7 +22,9 @@ RESET=$(shell tput -Txterm sgr0)
build:
@echo "$(GREEN)Building project...$(RESET)"
@$(MAKE) -s check-dependencies
ifeq ($(SKIP_DOCKER_PULL),)
@$(MAKE) -s pull-docker-image
endif
@$(MAKE) -s install-python-dependencies
@$(MAKE) -s install-frontend-dependencies
@$(MAKE) -s install-precommit-hooks
@@ -35,7 +37,9 @@ check-dependencies:
@$(MAKE) -s check-python
@$(MAKE) -s check-npm
@$(MAKE) -s check-nodejs
ifeq ($(SKIP_DOCKER_PULL),)
@$(MAKE) -s check-docker
endif
@$(MAKE) -s check-poetry
@echo "$(GREEN)Dependencies checked successfully.$(RESET)"