Commit b2a930cf authored by Katharina Höflich's avatar Katharina Höflich

Add CI build workflow

parent c9ea4f6b
Pipeline #26249 failed with stage
docker-build-tags:
image: docker:latest
stage: build
tags:
- docker-machine
variables:
DOCKER_DRIVER: overlay2
services:
- docker:dind
before_script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
script:
- docker build --pull -t "$CI_REGISTRY_IMAGE:$CI_COMMIT_TAG" .
- docker push "$CI_REGISTRY_IMAGE:$CI_COMMIT_TAG"
only:
- tags
docker-build:
image: docker:latest
stage: build
tags:
- docker-machine
variables:
DOCKER_DRIVER: overlay2
services:
- docker:dind
before_script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
script:
- docker build --pull -t "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG" .
- docker push "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG"
except:
- tags
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