From f354ec610bdea10a2bf58e8a154ffa9718ede20e Mon Sep 17 00:00:00 2001 From: Felipe Cardoso Date: Sun, 2 Nov 2025 04:36:35 +0100 Subject: [PATCH] Add `clean-slate` target to Makefile for removing containers and volumes --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) mode change 100644 => 100755 Makefile diff --git a/Makefile b/Makefile old mode 100644 new mode 100755 index 75a6ffa..3e3732a --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -.PHONY: dev prod down clean +.PHONY: dev prod down clean clean-slate VERSION ?= latest REGISTRY := gitea.pragmazest.com/cardosofelipe/app @@ -20,6 +20,10 @@ deploy: clean: docker compose down - +# WARNING! THIS REMOVES CONTAINERS AND VOLUMES AS WELL - DO NOT USE THIS UNLESS YOU WANT TO START OVER WITH DATA AND ALL +clean-slate: + docker compose down -v + push-images: docker build -t $(REGISTRY)/backend:$(VERSION) ./backend docker build -t $(REGISTRY)/frontend:$(VERSION) ./frontend