cleanup stage
This commit is contained in:
parent
21c5d0c58e
commit
cb856b1396
10
Makefile
10
Makefile
|
@ -11,12 +11,12 @@ endif
|
||||||
|
|
||||||
include make-deploy/$(DEPLOY_TYPE).mk
|
include make-deploy/$(DEPLOY_TYPE).mk
|
||||||
|
|
||||||
.PHONY: self-update mandatory prerequisites prepare build test deploy pre-deploy post-deploy pre-local post-local upload pull start stop restart reload
|
.PHONY: self-update mandatory cleanup prerequisites prepare build test deploy pre-deploy post-deploy pre-local post-local upload pull start stop restart reload
|
||||||
|
|
||||||
self-update:
|
self-update:
|
||||||
@- git submodule update --remote
|
@- git submodule update --remote
|
||||||
|
|
||||||
deploy: mandatory prepare build test upload pre-deploy pre-local pull start post-local post-deploy reload
|
deploy: mandatory cleanup prepare build test upload pre-deploy pre-local pull start post-local post-deploy reload
|
||||||
|
|
||||||
mandatory:
|
mandatory:
|
||||||
@- echo "\n### mandatory check"
|
@- echo "\n### mandatory check"
|
||||||
|
@ -33,6 +33,12 @@ endif
|
||||||
prerequisites:
|
prerequisites:
|
||||||
@- echo "\n### prerequisites ..."
|
@- echo "\n### prerequisites ..."
|
||||||
@- ./prerequisites.sh
|
@- ./prerequisites.sh
|
||||||
|
|
||||||
|
cleanup:
|
||||||
|
@- echo "\n### cleanup ..."
|
||||||
|
@- $(foreach host,$(DEPLOY_HOSTS), \
|
||||||
|
ssh $(SSH_USER)@$(host) "cd $(DEPLOY_PATH)/$(DEPLOY_NAME); sh cleanup.sh $(host)"; \
|
||||||
|
)
|
||||||
|
|
||||||
prepare:
|
prepare:
|
||||||
@- echo "\n### preparing ..."
|
@- echo "\n### preparing ..."
|
||||||
|
|
|
@ -54,6 +54,8 @@ Relying only on GNU Make and simple CLI tools makes deployments robust and still
|
||||||
|
|
||||||
`mandatory`: Checks if all needed variables are set in config.mk.
|
`mandatory`: Checks if all needed variables are set in config.mk.
|
||||||
|
|
||||||
|
`cleanup`: Runs `cleanup.sh` on each remote target, meant to be used to wipe contents of prior installations.
|
||||||
|
|
||||||
`prepare`: Creates needed directory for the deployment on the target system, sets secure file permissions for `secrets.mk`.
|
`prepare`: Creates needed directory for the deployment on the target system, sets secure file permissions for `secrets.mk`.
|
||||||
|
|
||||||
`build`: Calls `build.sh` locally. This is for building purposts, e.g. docker build and push.
|
`build`: Calls `build.sh` locally. This is for building purposts, e.g. docker build and push.
|
||||||
|
|
Loading…
Reference in New Issue