From f9e5005f8dd9ba1e6ce94fd30e0041b7a225a2df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Sun, 11 Dec 2016 21:01:40 +0100 Subject: [PATCH] upload api to swift container for publication --- .gitlab-ci.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7501ef3df..5c58bacde 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -47,6 +47,17 @@ api-doc-build: only: - master - tags + +api-doc-deploy: + stage: deploy-doc + image: pallet/swiftclient:latest + before_script: + # test that CONTAINER_API variable is set + - if [ -z ${CONTAINER_API+x} ]; then echo "Please set CONTAINER_API variable"; exit -1; fi + script: swift upload $CONTAINER_API api-doc/$CI_PROJECT_NAME/$CI_BUILD_REF_NAME + only: + - master + - tags deploy-packagist: stage: deploy