This commit is contained in:
Wolfgang Hottgenroth 2019-02-18 07:26:48 +01:00
commit 55963795a2
Signed by: wn
GPG Key ID: B586EAFCDF2F65F4
2 changed files with 33 additions and 0 deletions

22
.gitlab-ci.yml Normal file
View File

@ -0,0 +1,22 @@
image: docker:stable
stages:
- build
variables:
IMAGE_NAME: registry.gitlab.com/wolutator/build-env-java
build:
stage: build
tags:
- hottis
- linux
- docker
script:
- VERSION=`cat VERSION`
- echo "Version is $VERSION"
- docker build --tag $IMAGE_NAME:latest --tag $IMAGE_NAME:$VERSION .
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
- docker push $IMAGE_NAME:latest
- docker push $IMAGE_NAME:$VERSION

11
Dockerfile Normal file
View File

@ -0,0 +1,11 @@
FROM registry.gitlab.com/wolutator/base-build-env:latest
MAINTAINER Wolfgang Hottgenroth <wolfgang.hottgenroth@icloud.com>
RUN \
apt update && \
apt install -y openjdk-8-headless && \
apt install -y maven && \
rm -rf /var/lib/apt/lists/*