From a20d2df50aaf39ab7e40a76c074449fac44be617 Mon Sep 17 00:00:00 2001 From: fdb-hiroshima <35889323+fdb-hiroshima@users.noreply.github.com> Date: Sat, 20 Apr 2019 23:07:50 +0200 Subject: [PATCH] Upload artifacts to pull request deploy environment (#539) --- .circleci/config.yml | 1 + script/upload_test_environment.sh | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100755 script/upload_test_environment.sh diff --git a/.circleci/config.yml b/.circleci/config.yml index d6a9ed4..d229cfa 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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 diff --git a/script/upload_test_environment.sh b/script/upload_test_environment.sh new file mode 100755 index 0000000..5f4d946 --- /dev/null +++ b/script/upload_test_environment.sh @@ -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"