Record git revision in build and update deploy Makefile
This commit is contained in:
parent
7fff0a6dbf
commit
81b87f2cc3
2 changed files with 12 additions and 7 deletions
11
Makefile
11
Makefile
|
|
@ -2,9 +2,9 @@
|
|||
|
||||
-include .env.production .env.development
|
||||
|
||||
REGISTRY := registry.coolify1.workaround.org
|
||||
REGISTRY := git.workaround.org/chaas
|
||||
|
||||
stage: TAG=stage
|
||||
stage: TAG=latest
|
||||
stage: build tag push
|
||||
curl -s -H "Authorization: Bearer $(COOLIFY_STAGE_DEPLOY_TOKEN)" \
|
||||
-X POST "$(COOLIFY_STAGE_DEPLOY_WEBHOOK)"
|
||||
|
|
@ -15,10 +15,11 @@ prod: build tag push
|
|||
-X POST "$(COOLIFY_PROD_DEPLOY_WEBHOOK)"
|
||||
|
||||
build:
|
||||
podman build -t debshots-$(TAG) .
|
||||
docker build --build-arg GIT_REV=$(git rev-parse --short HEAD) -t debshots-$(TAG) .
|
||||
|
||||
tag:
|
||||
podman tag debshots-$(TAG) $(REGISTRY)/debshots-web:$(TAG)
|
||||
docker tag debshots-$(TAG) $(REGISTRY)/debshots:$(TAG)
|
||||
|
||||
push:
|
||||
podman push $(REGISTRY)/debshots-web:$(TAG)
|
||||
docker push $(REGISTRY)/debshots:$(TAG)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue