Upload artifacts to pull request deploy environment (#539)

This commit is contained in:
fdb-hiroshima 2019-04-20 23:07:50 +02:00 committed by GitHub
parent 29e11f552f
commit a20d2df50a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

@ -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 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 - *save_cache_release
- run: script/generate_artifact.sh - run: script/generate_artifact.sh
- run: script/upload_test_environment.sh
- store_artifacts: - store_artifacts:
path: plume.tar.gz path: plume.tar.gz
destination: plume.tar.gz destination: plume.tar.gz

View 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"