Skip to content

Commit

Permalink
add redeploy-all make target for docker swarm
Browse files Browse the repository at this point in the history
  • Loading branch information
sidpalas committed May 12, 2023
1 parent 9a3b2d9 commit 9ff3c72
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions 12-deploying-containers/docker-swarm/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,11 @@ create-secrets:
.PHONY: delete-secrets
delete-secrets:
DOCKER_HOST=${DOCKER_HOST} docker secret rm postgres-passwd database-url

.PHONY: redeploy-all
redeploy-all:
-$(MAKE) swarm-remove-stack
-$(MAKE) delete-secrets
@sleep 3
-$(MAKE) create-secrets
-$(MAKE) swarm-deploy-stack

0 comments on commit 9ff3c72

Please sign in to comment.