runtime/Makefile
Adam Štrauch 2c9ee0c3a7
Some checks failed
continuous-integration/drone/push Build is failing
Switch to Debian 12
2023-06-10 17:05:21 +02:00

26 lines
587 B
Makefile

REPO=harbor.hq.rosti.cz/rosti/runtime
DOCKER=docker
VERSION=2023.06-1
BASEIMAGE=debian:11
all: build
build:
$(DOCKER) pull ${BASEIMAGE}
$(DOCKER) build -t ${REPO}:dev .
$(DOCKER) tag ${REPO}:dev ${REPO}:$(VERSION)
@echo "JSON for admin:"
python generate_versions.py
test:
DOCKER=$(DOCKER) bash ./tests2.sh ${REPO}:$(VERSION)
squashed:
$(DOCKER) pull ${BASEIMAGE}
$(DOCKER) build --squash -t ${REPO}:dev-squashed .
$(DOCKER) tag ${REPO}:dev-squashed ${REPO}:$(VERSION)
@echo "JSON for admin:"
python generate_versions.py
push: squashed
$(DOCKER) push ${REPO}:$(VERSION)