mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 13:54:23 +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
|
image: pallet/swiftclient:latest
|
||||||
before_script:
|
before_script:
|
||||||
# test that CONTAINER_API variable is set
|
# test that CONTAINER_API variable is set
|
||||||
- if [ -z ${CONTAINER_API+x} ]; then echo "Please set CONTAINER_API variable"; exit -1; fi
|
- 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
|
# 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:
|
only:
|
||||||
- master
|
- master
|
||||||
- tags
|
- tags
|
||||||
|
Loading…
x
Reference in New Issue
Block a user