From 935328f2383d0d7736b82b56744216a608931b41 Mon Sep 17 00:00:00 2001 From: Wilco Kruijer Date: Wed, 19 Feb 2020 12:33:12 +0100 Subject: [PATCH] Gitlab CI --- .gitlab-ci.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..b8fad98 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,19 @@ +image: docker:latest +services: +- docker:dind + +stages: +- build + +variables: + IMAGE: registry.gitlab.com/$CI_PROJECT_PATH + +before_script: + - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN registry.gitlab.com + +build: + stage: build + script: + - docker build --pull -t $IMAGE:master centurion + - docker push $IMAGE:master +