EOX GitLab Instance

Commit ba8e2b38 authored by Lubomir Doležal's avatar Lubomir Doležal
Browse files

add basic gitlab ci yaml

parent 7c3ae4ae
Pipeline #17449 passed with stage
in 3 minutes and 48 seconds
stages:
- deploy
variables:
DOCKER_TLS_CERTDIR: ""
deploy_latest:
image: docker:20.10.8
services:
- docker:20.10.8-dind
stage: deploy
script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" "$CI_REGISTRY"
- docker build -t $CI_REGISTRY_IMAGE .
- docker push $CI_REGISTRY_IMAGE:latest
except:
- tags
deploy:
image: docker:20.10.8
services:
- docker:20.10.8-dind
stage: deploy
script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" "$CI_REGISTRY"
- docker build --cache-from $CI_REGISTRY_IMAGE:latest -t $CI_REGISTRY_IMAGE .
- docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME
only:
- 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