Commit ce59daea authored by Julian Schuh's avatar Julian Schuh
Browse files

First Version of build image

parents
image: docker:17
services:
- docker:dind
stages:
- build
variables:
IMAGE_NAME_UNIQUE: $CI_REGISTRY_IMAGE:$CI_BUILD_REF_NAME
IMAGE_NAME_LATEST: $CI_REGISTRY_IMAGE:latest
before_script:
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN $CI_REGISTRY
build:
stage: build
script:
- docker build --pull -t $IMAGE_NAME_UNIQUE .
- docker tag $IMAGE_NAME_UNIQUE $IMAGE_NAME_LATEST
- docker push $IMAGE_NAME_UNIQUE
- docker push $IMAGE_NAME_LATEST
FROM debian:9
RUN apt-get update && apt-get install -y git subversion python build-essential gawk unzip libz-dev libncurses-dev libssl-dev curl && apt-get clean
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment