build-image/Makefile

17 lines
410 B
Makefile
Raw Normal View History

2019-04-18 15:33:44 +00:00
# VERSION
# If no version is specified as a parameter of make, the value latest
# is taken.
2019-04-18 15:41:08 +00:00
VERSION:=$(or ${TRAVIS_TAG}, ${TRAVIS_TAG}, latest)
2019-04-18 15:33:44 +00:00
# DOCKER_USER
DOCKER_USER:=volkerraschek
build:
docker build \
--no-cache \
--tag ${DOCKER_USER}/build-image:${VERSION} \
.
push: build
docker login --username ${DOCKER_USER} --password ${DOCKER_PASSWORD}
docker push ${DOCKER_USER}/build-image:${VERSION}