This commit is contained in:
Wolfgang Hottgenroth 2020-04-24 11:48:22 +00:00
commit 29f55598d9
4 changed files with 40 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
*~
.*~

22
.gitlab-ci.yml Normal file
View File

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

15
Dockerfile Normal file
View File

@ -0,0 +1,15 @@
FROM debian:latest
LABEL Maintainer="Wolfgang Hottgenroth <woho@hottis.de>"
LABEL ImageName="registry.gitlab.com/wolutator/exim-docker"
RUN \
apt update && \
apt install -y exim4 && \
rm -rf /var/lib/apt/lists/*
VOLUME /etc/exim4

1
VERSION Normal file
View File

@ -0,0 +1 @@
0.1