From b3c36323945675e1e70713eac6b9a138cfb704a0 Mon Sep 17 00:00:00 2001 From: Wolfgang Hottgenroth Date: Mon, 18 Mar 2019 15:04:22 +0100 Subject: [PATCH] initial --- .gitlab-ci.yml | 22 ++++++++++++++++++++++ Dockerfile | 10 ++++++++++ VERSION | 1 + 3 files changed, 33 insertions(+) create mode 100644 .gitlab-ci.yml create mode 100644 Dockerfile create mode 100644 VERSION diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..9e26586 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,22 @@ +image: docker:stable + +stages: + - build + +variables: + IMAGE_NAME: registry.gitlab.com/wolutator/gprolog-base-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 + diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..69daf19 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,10 @@ +FROM debian:latest + +MAINTAINER Wolfgang Hottgenroth + +RUN \ + apt-get update && \ + apt-get install -y gprolog + +WORKDIR /source + diff --git a/VERSION b/VERSION new file mode 100644 index 0000000..8acdd82 --- /dev/null +++ b/VERSION @@ -0,0 +1 @@ +0.0.1