runtime/Makefile
Adam Štrauch 82c648b7cd
Some checks reported errors
continuous-integration/drone Build encountered an error
Debian 12, new version of everything, switch to task
2023-08-12 14:16:21 +02:00

27 lines
623 B
Makefile

# TODO: Unnecessary, remo this file
REPO=harbor.hq.rosti.cz/rosti/runtime
DOCKER=docker
VERSION=2023.08-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)