2021-11-19 17:09:15 +00:00
|
|
|
REPO=harbor.hq.rosti.cz/rosti/runtime
|
2020-02-02 21:06:11 +00:00
|
|
|
DOCKER=docker
|
2023-06-10 15:05:21 +00:00
|
|
|
VERSION=2023.06-1
|
2023-02-03 16:46:51 +00:00
|
|
|
BASEIMAGE=debian:11
|
2020-02-02 21:06:11 +00:00
|
|
|
|
|
|
|
all: build
|
|
|
|
|
|
|
|
build:
|
2023-02-03 16:46:51 +00:00
|
|
|
$(DOCKER) pull ${BASEIMAGE}
|
2021-11-19 17:09:15 +00:00
|
|
|
$(DOCKER) build -t ${REPO}:dev .
|
2021-11-19 22:55:22 +00:00
|
|
|
$(DOCKER) tag ${REPO}:dev ${REPO}:$(VERSION)
|
2023-02-03 16:46:51 +00:00
|
|
|
@echo "JSON for admin:"
|
|
|
|
python generate_versions.py
|
2020-02-02 21:06:11 +00:00
|
|
|
|
2020-04-01 21:47:12 +00:00
|
|
|
test:
|
2021-12-04 13:49:28 +00:00
|
|
|
DOCKER=$(DOCKER) bash ./tests2.sh ${REPO}:$(VERSION)
|
2020-02-02 21:06:11 +00:00
|
|
|
|
|
|
|
squashed:
|
2023-02-03 16:46:51 +00:00
|
|
|
$(DOCKER) pull ${BASEIMAGE}
|
2021-11-19 17:09:15 +00:00
|
|
|
$(DOCKER) build --squash -t ${REPO}:dev-squashed .
|
2021-11-19 22:55:22 +00:00
|
|
|
$(DOCKER) tag ${REPO}:dev-squashed ${REPO}:$(VERSION)
|
2023-02-03 16:46:51 +00:00
|
|
|
@echo "JSON for admin:"
|
|
|
|
python generate_versions.py
|
2020-02-02 21:06:11 +00:00
|
|
|
|
|
|
|
push: squashed
|
2021-11-19 17:09:15 +00:00
|
|
|
$(DOCKER) push ${REPO}:$(VERSION)
|