use common build and publish approach

This commit is contained in:
Wolfgang Hottgenroth 2020-09-26 12:17:55 +02:00
parent b7bd2949f3
commit e9b92fb712
Signed by: wn
GPG Key ID: B586EAFCDF2F65F4
3 changed files with 5 additions and 27 deletions

View File

@ -1,25 +1,4 @@
image: wollud1969/docker-bash:latest include:
- project: dockerized/commons
stages: ref: master
- build file: gitlab-ci-template.yml
variables:
IMAGE_NAME: registry.hottis.de/dockerized/build-env-latex
HUB_IMAGE_NAME: wollud1969/build-env-latex
build:
stage: build
tags:
- hottis
- linux
- docker
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,4 +1,4 @@
FROM registry.hottis.de/dockerized/base-build-env:0.3.0 FROM registry.hottis.de/dockerized/base-build-env:1.0.0
LABEL Maintainer="Wolfgang Hottgenroth <woho@hottis.de>" LABEL Maintainer="Wolfgang Hottgenroth <woho@hottis.de>"
LABEL ImageName="registry.hottis.de/dockerized/build-env-latex" LABEL ImageName="registry.hottis.de/dockerized/build-env-latex"

View File

@ -1 +0,0 @@
0.1.0