runtime/Makefile
Adam Štrauch d2333b2b3a
Some checks failed
continuous-integration/drone/push Build is failing
Version 2023.2-1, new Deno and Node, PHP fix, admin versions generator
2023-02-03 17:46:51 +01:00

26 lines
587 B
Makefile

REPO=harbor.hq.rosti.cz/rosti/runtime
DOCKER=docker
VERSION=2023.02-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)