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
|
2021-11-19 17:09:15 +00:00
|
|
|
VERSION=2021.11-1
|
2020-02-02 21:06:11 +00:00
|
|
|
|
|
|
|
all: build
|
|
|
|
|
|
|
|
build:
|
2020-02-12 23:25:24 +00:00
|
|
|
$(DOCKER) pull debian:buster
|
2021-11-19 17:09:15 +00:00
|
|
|
$(DOCKER) build -t ${REPO}:dev .
|
2020-02-02 21:06:11 +00:00
|
|
|
|
2020-04-01 21:47:12 +00:00
|
|
|
test:
|
2021-11-19 22:52:57 +00:00
|
|
|
DOCKER=$(DOCKER) ./tests2.sh
|
2020-02-02 21:06:11 +00:00
|
|
|
|
|
|
|
squashed:
|
2020-02-12 23:25:24 +00:00
|
|
|
$(DOCKER) pull debian:buster
|
2021-11-19 17:09:15 +00:00
|
|
|
$(DOCKER) build --squash -t ${REPO}:dev-squashed .
|
2020-02-02 21:06:11 +00:00
|
|
|
|
|
|
|
push: squashed
|
2021-11-19 17:09:15 +00:00
|
|
|
$(DOCKER) tag ${REPO}:dev-squashed ${REPO}:$(VERSION)
|
|
|
|
$(DOCKER) push ${REPO}:$(VERSION)
|