19 lines
485 B
Makefile
19 lines
485 B
Makefile
DOCKER_REGISTRY = dr.ys-dev.cz
|
|
DOCKER_PUBLIC_REGISTRY = yoursystemcz
|
|
APP_NAME = node-interpretter
|
|
|
|
|
|
|
|
all: build release
|
|
|
|
|
|
build:
|
|
docker build -t $(DOCKER_REGISTRY)/$(APP_NAME):latest --build-arg "IMAGE_NAME=node" --build-arg "IMAGE_VERSION=10.15.0-slim" ./src
|
|
|
|
tag:
|
|
docker tag $(DOCKER_REGISTRY)/$(APP_NAME):latest $(DOCKER_PUBLIC_REGISTRY)/$(APP_NAME):latest
|
|
|
|
release: tag
|
|
docker push $(DOCKER_REGISTRY)/$(APP_NAME):latest
|
|
docker push $(DOCKER_PUBLIC_REGISTRY)/$(APP_NAME):latest
|