commit b3c36323945675e1e70713eac6b9a138cfb704a0 Author: Wolfgang Hottgenroth Date: Mon Mar 18 15:04:22 2019 +0100 initial 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