cupsd-docker/Makefile

16 lines
378 B
Makefile
Raw Normal View History

2019-05-26 19:16:19 +00:00
# VERSION
# If no version is specified as a parameter of make, the last git hash
# value is taken.
2019-05-26 19:23:36 +00:00
VERSION:=$(or ${TRAVIS_TAG}, latest)
2019-05-26 19:16:19 +00:00
# DOCKER_USER
DOCKER_USER?=volkerraschek
build:
docker build \
--tag ${DOCKER_USER}/cupsd:${VERSION} \
.
push: build
docker login --username ${DOCKER_USER} --password ${DOCKER_PASSWORD}
docker push ${DOCKER_USER}/cupsd:${VERSION}