Browse Source

Upload artifacts to pull request deploy environment (#539)

tags/0.4.0-alpha-4
fdb-hiroshima 2 years ago
committed by GitHub
parent
commit
a20d2df50a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions
  1. +1
    -0
      .circleci/config.yml
  2. +7
    -0
      script/upload_test_environment.sh

+ 1
- 0
.circleci/config.yml 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
- *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
- 0
script/upload_test_environment.sh 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"

Loading…
Cancel
Save