mirror of
https://git.joinplu.me/Plume/Plume.git
synced 2024-11-22 03:21:01 +00:00
Upload artifacts to pull request deploy environment (#539)
This commit is contained in:
parent
29e11f552f
commit
a20d2df50a
2 changed files with 8 additions and 0 deletions
|
@ -191,6 +191,7 @@ aliases:
|
|||
command: cargo build --release --no-default-features --features="${FEATURES}" -p plume-cli || cargo build --release --no-default-features --features="${FEATURES}" -p plume-cli
|
||||
- *save_cache_release
|
||||
- run: script/generate_artifact.sh
|
||||
- run: script/upload_test_environment.sh
|
||||
- store_artifacts:
|
||||
path: plume.tar.gz
|
||||
destination: plume.tar.gz
|
||||
|
|
7
script/upload_test_environment.sh
Executable file
7
script/upload_test_environment.sh
Executable file
|
@ -0,0 +1,7 @@
|
|||
#!/bin/bash
|
||||
pr_id=$(basename "$CI_PULL_REQUEST")
|
||||
[ -z "$pr_id" ] && exit
|
||||
backend="$FEATURES"
|
||||
password="$JOINPLUME_PASSWORD"
|
||||
|
||||
curl -T plume.tar.gz "https://circleci:$password@joinplu.me/upload_pr/$backend/$pr_id.tar.gz"
|
Loading…
Reference in a new issue