Add Makefile for building and deploying container images
This commit is contained in:
parent
b42d99022b
commit
66e2c8c7f1
1 changed files with 24 additions and 0 deletions
24
Makefile
Normal file
24
Makefile
Normal 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)
|
||||||
Loading…
Add table
Add a link
Reference in a new issue