This commit is contained in:
2019-02-16 23:21:02 +01:00
commit 9c9cfae89e
3 changed files with 34 additions and 0 deletions

21
.gitlab-ci.yml Normal file
View File

@ -0,0 +1,21 @@
image: docker:stable
stages:
- build
variables:
IMAGE_NAME=registry.gitlab.com/wolutator/base-build-env
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

12
Dockerfile Normal file
View File

@ -0,0 +1,12 @@
FROM debian:latest
MAINTAINER Wolfgang Hottgenroth <wolfgang.hottgenroth@icloud.com>
RUN \
apt-get update && \
apt-get install -y make && \
apt-get install -y openssh-client && \
apt-get install -y git && \
rm -rf /var/lib/apt/lists/*

1
VERSION Normal file
View File

@ -0,0 +1 @@
0.0.1