From 66e2c8c7f166dcfa6419808e16b781b8f0023f23 Mon Sep 17 00:00:00 2001 From: Christoph Haas Date: Thu, 26 Feb 2026 01:40:19 +0100 Subject: [PATCH] Add Makefile for building and deploying container images --- Makefile | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..b83b2e3 --- /dev/null +++ b/Makefile @@ -0,0 +1,24 @@ +.PHONY: stage prod build tag push + +-include .env.production .env.development + +REGISTRY := registry.coolify1.workaround.org + +stage: TAG=stage +stage: build tag push + curl -s -H "Authorization: Bearer $(COOLIFY_STAGE_DEPLOY_TOKEN)" \ + -X POST "$(COOLIFY_STAGE_DEPLOY_WEBHOOK)" + +prod: TAG=prod +prod: build tag push + curl -s -H "Authorization: Bearer $(COOLIFY_PROD_DEPLOY_TOKEN)" \ + -X POST "$(COOLIFY_PROD_DEPLOY_WEBHOOK)" + +build: + podman build -t debshots-$(TAG) . + +tag: + podman tag debshots-$(TAG) $(REGISTRY)/debshots-web:$(TAG) + +push: + podman push $(REGISTRY)/debshots-web:$(TAG)