mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 21:34:25 +00:00
fix upload dir and add delete-after for api doc
This commit is contained in:
parent
f9e5005f8d
commit
efa24e2838
@ -53,8 +53,12 @@ api-doc-deploy:
|
||||
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
|
||||
- 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
|
||||
script:
|
||||
# upload, and keep files during 1 year
|
||||
- swift upload --header "X-Delete-After: 31536000" $CONTAINER_API $CI_PROJECT_NAME/$CI_BUILD_REF_NAME
|
||||
only:
|
||||
- master
|
||||
- tags
|
||||
|
Loading…
x
Reference in New Issue
Block a user