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}
|
2019-05-27 18:47:15 +00:00
|
|
|
docker push ${DOCKER_USER}/cupsd:${VERSION}
|