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-08-19 16:28:06 +00:00
|
|
|
VERSION:=$(or ${TRAVIS_TAG}, latest)
|
2019-04-18 15:33:44 +00:00
|
|
|
|
|
|
|
# DOCKER_USER
|
|
|
|
DOCKER_USER:=volkerraschek
|
|
|
|
|
2019-08-19 16:28:06 +00:00
|
|
|
image-build:
|
2019-04-18 15:33:44 +00:00
|
|
|
docker build \
|
|
|
|
--tag ${DOCKER_USER}/build-image:${VERSION} \
|
|
|
|
.
|
|
|
|
|
2019-08-19 16:28:06 +00:00
|
|
|
image-push: image-build
|
2019-04-18 15:33:44 +00:00
|
|
|
docker login --username ${DOCKER_USER} --password ${DOCKER_PASSWORD}
|
|
|
|
docker push ${DOCKER_USER}/build-image:${VERSION}
|