rspamd: improve building scenario

This commit is contained in:
ace
2024-01-26 02:07:41 +03:00
parent 93dc6fa250
commit 5e1f07ed98
2 changed files with 19 additions and 6 deletions

View File

@ -1,13 +1,21 @@
VERSION=3.7.5-1
VERSION=3.8.1
BUILD=1
IMAGE=rspamd
REGISTRY=gitea.geekhome.org/ghp
DOVECOT_VERSION=2.3.16
POSTFIX_VERSION=3.5.9
RSPAMD_VERSION=$(VERSION)
.PHONY: build push all
build:
docker build -t $(REGISTRY)/$(IMAGE):$(VERSION) .
docker build --build-arg DOVECOT_VERSION=$(DOVECOT_VERSION) \
--build-arg POSTFIX_VERSION=$(POSTFIX_VERSION) \
--build-arg RSPAMD_VERSION=$(RSPAMD_VERSION) \
-t $(REGISTRY)/$(IMAGE):$(VERSION)-$(BUILD) .
push:
docker push $(REGISTRY)/$(IMAGE):$(VERSION)
docker push $(REGISTRY)/$(IMAGE):$(VERSION)-$(BUILD)
all: build push