Adam Štrauch
7fc67804a8
Some checks reported errors
continuous-integration/drone/push Build was killed
20 lines
391 B
Makefile
20 lines
391 B
Makefile
REPO=harbor.hq.rosti.cz/rosti/runtime
|
|
DOCKER=docker
|
|
VERSION=2021.11-1
|
|
|
|
all: build
|
|
|
|
build:
|
|
$(DOCKER) pull debian:buster
|
|
$(DOCKER) build -t ${REPO}:dev .
|
|
|
|
test:
|
|
DOCKER=$(DOCKER) ./tests2.sh
|
|
|
|
squashed:
|
|
$(DOCKER) pull debian:buster
|
|
$(DOCKER) build --squash -t ${REPO}:dev-squashed .
|
|
|
|
push: squashed
|
|
$(DOCKER) tag ${REPO}:dev-squashed ${REPO}:$(VERSION)
|
|
$(DOCKER) push ${REPO}:$(VERSION)
|