eco-server/Makefile
2018-03-12 23:58:24 +01:00

23 lines
367 B
Makefile

ECO_VERSION ?= 0.7.2.3-beta
DOCKER_IMAGE = t3hk0d3/eco-server
DOCKER_TARGET = ${DOCKER_IMAGE}:${ECO_VERSION}
all: build push clean
build:
docker build --rm \
--label "eco.version=${ECO_VERSION}" \
--build-arg ECO_VERSION="${ECO_VERSION}" \
-t ${DOCKER_TARGET} \
-t ${DOCKER_IMAGE} \
.
push:
docker push ${DOCKER_IMAGE}
clean:
rm -rf "${ECO_FILENAME}"