Add Makefile for building and deploying container images

This commit is contained in:
Christoph Haas 2026-02-26 01:40:19 +01:00
parent b42d99022b
commit 66e2c8c7f1

24
Makefile Normal file
View file

@ -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)