debshots/Makefile

24 lines
585 B
Makefile

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