runtime/Makefile
Adam Štrauch 631877c1fd
Some checks reported errors
continuous-integration/drone/push Build was killed
continuous-integration/drone Build is passing
continuous-integration/drone/tag Build was killed
Exclude test build when build is promoted
2021-11-20 01:45:02 +01:00

21 lines
444 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 .
$(DOCKER) tag ${REPO}:dev ${REPO}:$(VERSION)
test:
DOCKER=$(DOCKER) fish ./tests2.fish
squashed:
$(DOCKER) pull debian:buster
$(DOCKER) build --squash -t ${REPO}:dev-squashed .
$(DOCKER) tag ${REPO}:dev-squashed ${REPO}:$(VERSION)
push: squashed
$(DOCKER) push ${REPO}:$(VERSION)