diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..a707c8de2f97211c66aa9f519bced807aecc5f1a --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,39 @@ +image: docker:latest +services: +- docker:dind + +stages: + - build + - pages + +.dind_base: + tags: [dind] + image: docker/compose:1.29.2 + variables: + DOCKER_TLS_CERTDIR: "" + DOCKER_HOST: tcp://docker:2375 + services: + - name: docker:dind + command: [dockerd, '-H', 'tcp://0.0.0.0:2375'] + before_script: + # docker login asks for the password to be passed through stdin for security + # we use $CI_REGISTRY_PASSWORD here which is a special variable provided by GitLab + # https://docs.gitlab.com/ce/ci/variables/predefined_variables.html + - echo -n $CI_REGISTRY_PASSWORD | docker login -u $CI_REGISTRY_USER --password-stdin $CI_REGISTRY + +build-image: + extends: .dind_base + stage: build + script: + - docker build -t $CI_REGISTRY_IMAGE otbtf_pres/. + - docker push $CI_REGISTRY_IMAGE + +pages: + image: $CI_REGISTRY_IMAGE + stage: pages + script: + - cp -r /public public + - cp -r otbtf_pres/* public + artifacts: + paths: + - public diff --git a/otbtf_pres b/otbtf_pres new file mode 120000 index 0000000000000000000000000000000000000000..2919cce4078894e5347dbb70ca0845e0dcde3387 --- /dev/null +++ b/otbtf_pres @@ -0,0 +1 @@ +/home/remi/Documents/otb/otbtf_pres \ No newline at end of file