enable docker hub

This commit is contained in:
Wolfgang Hottgenroth 2019-06-27 14:29:12 +00:00
parent 322546cef5
commit 6541985e17
2 changed files with 8 additions and 0 deletions

View File

@ -5,6 +5,7 @@ stages:
variables:
IMAGE_NAME: registry.gitlab.com/wolutator/hkd
HUB_IMAGE_NAME: wollud1969/hkd
build:
stage: build
@ -18,4 +19,8 @@ build:
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
- docker push $IMAGE_NAME:latest
- docker push $IMAGE_NAME:$VERSION
- docker login -u $DOCKER_HUB_LOGIN -p $DOCKER_HUB_PASSWORD
- docker push $HUB_IMAGE_NAME:latest
- docker push $HUB_IMAGE_NAME:$VERSION

View File

@ -2,6 +2,9 @@ FROM node:8
LABEL Maintainer="Wolfgang Hottgenroth <woho@hottis.de>"
LABEL ImageName="registry.gitlab.com/wolutator/hkd"
LABEL AlternativeImageName="wollud1969/hkd"
ENV PIN "031-45-154"
ENV BROKER "mqtt://mosquitto"