From 3da31fc9e843525ad2ee1651d4a8f0aa96500577 Mon Sep 17 00:00:00 2001 From: Guillaume Pasero <guillaume.pasero@c-s.fr> Date: Thu, 27 Jun 2019 11:58:44 +0200 Subject: [PATCH] CI: bridge job to trigger release container --- .gitlab-ci.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 30fef81d0f..1763139076 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -242,4 +242,17 @@ deploy: - centos-xdk-build - macos-xdk-build - windows-8-build - - windows-10-build \ No newline at end of file + - windows-10-build + +release-container: + image: $BUILD_IMAGE_REGISTRY/otb-alpine:3.7 + stage: deploy + extends: .general + only: + refs: + - tags@orfeotoolbox/otb + variables: + - $CI_COMMIT_TAG =~ /^[0-9]+\.[0-9]+\.[0-9]+$/ + script: + - "curl --request POST --form token=$K8S_SECRET_RELEASE --form ref=master --form variables[OTB_TAG]=$CI_COMMIT_TAG https://gitlab.orfeo-toolbox.org/api/v4/projects/126/trigger/pipeline" + -- GitLab