From cd46b8cce4c534ab714317818a77939cb19ce68a Mon Sep 17 00:00:00 2001 From: Tru HUYNH <tru@pasteur.fr> Date: Wed, 29 Mar 2017 16:11:18 +0200 Subject: [PATCH] Add .gitlab-ci.yml --- .gitlab-ci.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..ae991ff --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,29 @@ +# default template +# The docker image will be named after the branch name +# Feel free to modify this file in your own branch + +image: docker:latest +services: + - docker:dind + +before_script: + - docker login -u gitlab-ci-token -p "$CI_BUILD_TOKEN" registry-gitlab.pasteur.fr + +stages: + - build + - extract + +build: + stage: build + script: + - docker build --pull -t "$CI_REGISTRY_IMAGE:$CI_BUILD_REF_NAME" . + - docker push "$CI_REGISTRY_IMAGE:$CI_BUILD_REF_NAME" + +save_actifacts: + stage: extract + image: registry-gitlab.pasteur.fr/tru/docker-centos6-tensorflow:master + script: + - date + artifacts: + paths: + - /build/tensorflow_pkg/ \ No newline at end of file -- GitLab