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

Add configuration for GitLab CI

parent de5bd4af
Pipeline #17617 canceled with stages
in 48 minutes and 37 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
- wget "ftp://topex.ucsd.edu/pub/srtm30_plus/topo30/topo30" -O topo30
- 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