runtime/Makefile
Adam Štrauch 4cb5bc17c9
Some checks reported errors
continuous-integration/drone/push Build was killed
continuous-integration/drone Build is passing
2023.01-1: mongodb PHP extension
2023-01-12 16:46:33 +01:00

21 lines
453 B
Makefile

REPO=harbor.hq.rosti.cz/rosti/runtime
DOCKER=docker
VERSION=2023.01-1
all: build
build:
$(DOCKER) pull debian:11
$(DOCKER) build -t ${REPO}:dev .
$(DOCKER) tag ${REPO}:dev ${REPO}:$(VERSION)
test:
DOCKER=$(DOCKER) bash ./tests2.sh ${REPO}:$(VERSION)
squashed:
$(DOCKER) pull debian:11
$(DOCKER) build --squash -t ${REPO}:dev-squashed .
$(DOCKER) tag ${REPO}:dev-squashed ${REPO}:$(VERSION)
push: squashed
$(DOCKER) push ${REPO}:$(VERSION)