mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-14 06:14:23 +00:00
fixing deploy-doc stage
This commit is contained in:
parent
7763bddc80
commit
98b6174cd2
@ -60,3 +60,16 @@ api-doc-build:
|
|||||||
- master
|
- master
|
||||||
- tags
|
- 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
|
||||||
|
# go to api-doc to have and url with PROJECT/BUILD
|
||||||
|
- cd api-doc
|
||||||
|
# upload, and keep files during 1 year
|
||||||
|
script: "swift upload --header \"X-Delete-After: 31536000\" $CONTAINER_API $CI_BUILD_REF_NAME/$CI_PROJECT_NAME"
|
||||||
|
only:
|
||||||
|
- master
|
||||||
|
- tags
|
||||||
|
Loading…
x
Reference in New Issue
Block a user