Upload artifacts to pull request deploy environment (#539)
This commit is contained in:
parent
29e11f552f
commit
a20d2df50a
@ -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 New Issue
Block a user