Merge branch 'master' of ssh://git.chefkoch.net:2222/pub/make-deploy

This commit is contained in:
Stefan Riepenhausen 2022-12-20 15:29:04 +01:00
commit c9e952929a
1 changed files with 8 additions and 2 deletions

View File

@ -7,12 +7,12 @@ include make-deploy/cron.mk
include make-deploy/kustomize.mk
include make-deploy/helm.mk
.PHONY: self-update build test deploy pre-deploy post-deploy pre-local post-local upload pull start stop restart reload
.PHONY: self-update prepare build test deploy pre-deploy post-deploy pre-local post-local upload pull start stop restart reload
self-update:
@- git submodule update --remote
deploy: mandatory build test upload pre-deploy pre-local pull start post-local post-deploy reload
deploy: mandatory prepare build test upload pre-deploy pre-local pull start post-local post-deploy reload
mandatory:
@- echo "\n### mandatory check"
@ -26,6 +26,12 @@ endif
fi; \
)
prepare:
@- echo "\n### preparing ..."
@- $(foreach host,$(DEPLOY_HOSTS), \
ssh $(SSH_USER)@$(host) "cd $(DEPLOY_PATH); mkdir $(DEPLOY_NAME)"; \
)
build:
ifneq (,$(wildcard build.sh))
@- echo "\n### running build script"