From f70d8542191274109bfb29c1ded98bc8d5175a54 Mon Sep 17 00:00:00 2001 From: Antoine Regimbeau <antoine.regimbeau@c-s.fr> Date: Wed, 19 Jun 2019 10:24:36 +0200 Subject: [PATCH] Add a new job for deployement --- .gitlab-ci.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ab0e2e74a8..b5fc7756d5 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -22,6 +22,7 @@ stages: - precheck - prepare - build + - deploy .general: retry: @@ -153,3 +154,27 @@ macos-superbuild-build: - ctest -VV -S CI/main_packages.cmake -DIMAGE_NAME:string=otb-macos-superbuild dependencies: - macos-superbuild-prepare + +# Deploy job + +deploy: + tags: + - deploy + image: $BUILD_IMAGE_REGISTRY/otb-alpine:3.7 + stage: deploy + extends: .general + only: + - develop + - /^release-[0-9]+\.[0-9]+$/ + before_script: + - git lfs install --skip-repo + # Provision efficiently the local LFS cache before checkout + - git lfs fetch origin $CI_COMMIT_SHA + # Checkout the expected branch + - git checkout -f -q $CI_COMMIT_SHA + script: + - ./CI/deploy.sh + dependencies: + - ubuntu-superbuild-build + - centos-superbuild-build + - macos-superbuild-build \ No newline at end of file -- GitLab