From 4701eb7e5ca86af4633a6e347ee1751e6ba73d7b Mon Sep 17 00:00:00 2001 From: Alex <apuret@takima.fr> Date: Mon, 6 Dec 2021 16:47:36 +0100 Subject: [PATCH] chores: add gitlab ci --- .gitlab-ci.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..5baae22 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,14 @@ + + + +build: + stage: bundle + services: + - docker:18.09.6-dind + script: + - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN registry.e-biz.fr + - docker build -t $CI_REGISTRY_IMAGE/theia:$TAG . + - docker push $CI_REGISTRY_IMAGE/theia:$TAG + rules: + - if: '$CI_COMMIT_BRANCH == "main"' + - if: '$CI_COMMIT_TAG !~ "/^$/"' \ No newline at end of file -- GitLab