19 lines
477 B
Makefile
19 lines
477 B
Makefile
DOCKER_REGISTRY = dr.ys-dev.cz
|
|
DOCKER_PUBLIC_REGISTRY = yoursystemcz
|
|
APP_NAME = dev-proxy
|
|
|
|
|
|
|
|
all: build release
|
|
|
|
|
|
build:
|
|
docker build -t $(DOCKER_REGISTRY)/$(APP_NAME):latest --build-arg "IMAGE_NAME=nimmis/alpine" --build-arg "IMAGE_VERSION=3.8" ./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
|