Commit 9d96e56a authored by Tomáš Pecka's avatar Tomáš Pecka

OpenBuildService client image

parent 5e69c9a0
Pipeline #23060 canceled with stage
in 4 minutes and 2 seconds
image: gitlab.fit.cvut.cz:5000/ict/alpine-docker-images/ci:3.8
stages:
- build
.docker: &docker_template
cache: {} # disable
stage: build
variables:
DOCKER_DRIVER: overlay2
DOCKER_HOST: docker
DIRECTORY: "${CI_JOB_NAME#build:}"
IMAGE_NAME: "${CI_REGISTRY_IMAGE}/${CI_JOB_NAME#build:}:latest"
services:
- docker:dind
before_script:
......@@ -14,11 +16,14 @@ image: gitlab.fit.cvut.cz:5000/ict/alpine-docker-images/ci:3.8
- docker info
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
script:
- cd "$DIRECTORY"
- IMAGE="${CI_JOB_NAME#build:}"
- IMAGE_NAME="${CI_REGISTRY_IMAGE}/${IMAGE}:latest"
- cd "$IMAGE"
- echo "In dir=$(pwd), going to build imagename=${IMAGE_NAME}"
- docker build -t "$IMAGE_NAME" .
- docker run -t "$IMAGE_NAME"
- docker push -t "$IMAGE_NAME"
dependencies: []
build:ocs
build:ocs:
<<: *docker_template
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