add copy on local registry, bump version to 0.4

This commit is contained in:
Wolfgang Hottgenroth 2020-07-17 14:06:57 +02:00
parent e151003032
commit d28cc59cc9
Signed by: wn
GPG Key ID: B586EAFCDF2F65F4
3 changed files with 6 additions and 3 deletions

View File

@ -4,7 +4,7 @@ stages:
- build
variables:
IMAGE_NAME: $MY_REGISTRY/docker-bash
IMAGE_NAME: registry.hottis.de/dockerized/docker-bash
HUB_IMAGE_NAME: wollud1969/docker-bash
build:
@ -16,6 +16,9 @@ build:
script:
- VERSION=`cat VERSION`
- docker build --tag $IMAGE_NAME:latest --tag $IMAGE_NAME:$VERSION --tag $HUB_IMAGE_NAME:$VERSION --tag $HUB_IMAGE_NAME:latest .
- 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

@ -1,7 +1,7 @@
FROM docker:stable
LABEL Maintainer="Wolfgang Hottgenroth <wolfgang.hottgenroth@icloud.com>"
# LABEL ImageName="registry.hottis.de/docker-bash"
LABEL ImageName="registry.hottis.de/dockerized/docker-bash"
LABEL AlternativeImageName="wollud1969/docker-bash"

View File

@ -1 +1 @@
0.3
0.4