Commit bdda8332 authored by Matthias Rüster's avatar Matthias Rüster
Browse files

Add configuration for GitLab CI

parent de5bd4af
Pipeline #17615 failed with stages
in 14 seconds
stages:
- test
- deploy-image
check_compile:
image: alpine:3.11.6
stage: test
tags:
- group
before_script:
- apk add --update curl make g++
script:
- make
gitlab_deploy:
stage: deploy-image
tags:
- group
before_script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
script:
- cd "${CI_PROJECT_DIR}"
- >
if [ -z "${CI_COMMIT_TAG}" ]; then
TAG="latest"
else
TAG="${CI_COMMIT_TAG}"
fi
- docker build --tag "${CI_REGISTRY_IMAGE}/${CI_PROJECT_NAME}:${TAG}" .
- docker push "${CI_REGISTRY_IMAGE}/${CI_PROJECT_NAME}:${TAG}"
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