Trigger archival services on new release
* .gitlab-ci.yml: curl Software Heritage and Internet Archive endpoints to trigger archival on push to stable
This commit is contained in:
parent
6dd99e049b
commit
12920c44e3
1 changed files with 2 additions and 0 deletions
|
|
@ -366,6 +366,8 @@ publish-stable:
|
|||
- tgz=`ls spot-*.tar.* | head -n 1`
|
||||
- case $tgz in *[0-9].tar.*) scp $tgz doc@perso:/var/www/dload/spot/;; esac
|
||||
- curl -X POST -F ref=master -F token=$TRIGGER_SPOT_WEB -F "variables[spot_branch]=stable" https://gitlab.lrde.epita.fr/api/v4/projects/131/trigger/pipeline
|
||||
- curl -X POST "https://archive.softwareheritage.org/api/1/origin/save/git/url/https://gitlab.lrde.epita.fr/spot/spot/"
|
||||
- curl "https://web.archive.org/save/https://www.lrde.epita.fr/dload/spot/$tgz"
|
||||
|
||||
publish-unstable:
|
||||
only:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue