Commit 983572e1 authored by BODERE's avatar BODERE
Browse files

add .gitlab-ci.yml

parent cef851c8
stages:
- build_image
# to build docker in docker
services:
- docker:dind
variables:
DOCKER_DRIVER: overlay2
build_and_push_docker:
# pipeline stage
stage: build_image
# gitlab runner
tags: [eo-dataflow-runner]
# docker image used to run build_and_push_docker
image: docker:latest
# commands to execute
script:
- test -n "${CI_BUILD_TOKEN}" && docker login -u gitlab-ci-token -p ${CI_BUILD_TOKEN} ${CI_REGISTRY} || true
- docker build -t ${CI_REGISTRY}/${CI_PROJECT_PATH}/${CI_PROJECT_NAME}:${CI_COMMIT_TAG} .
- docker push ${REGISTRY_PATH} ${CI_REGISTRY}/${CI_PROJECT_PATH}/${CI_PROJECT_NAME}:${CI_COMMIT_TAG}
# trigger : only on tag creation
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