Skip to content

Commit

Permalink
Include spc/when CLIs in linux/darwin self-hosted toolbox (#320)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaspin authored Apr 29, 2022
1 parent 55388e7 commit bf15131
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions release/create.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ set -euo pipefail

ARTIFACT_CLI_VERSION="v0.5.2"
WHEN_CLI_VERSION="v1.0.5"
SPC_CLI_VERSION="v1.9.1"
SPC_CLI_VERSION="v1.9.2"
TEST_RESULTS_CLI_VERSION="v0.4.12"

ARTIFACT_CLI_URL="https://github.com/semaphoreci/artifact/releases/download/$ARTIFACT_CLI_VERSION"
SPC_CLI_URL="https://github.com/semaphoreci/spc/releases/download/$SPC_CLI_VERSION"
WHEN_CLI_URL="https://github.com/renderedtext/when/releases/download/$WHEN_CLI_VERSION"
TEST_RESULTS_CLI_URL="https://github.com/semaphoreci/test-results/releases/download/$TEST_RESULTS_CLI_VERSION"
WHEN_CLI_URL="https://github.com/renderedtext/when/releases/download/$WHEN_CLI_VERSION"

create_tarball() {
tarball_name=$1
Expand Down Expand Up @@ -117,6 +117,14 @@ self_hosted::pack() {
include_external_darwin_binary $ARTIFACT_CLI_URL "artifact" /tmp/self-hosted-Darwin
include_external_linux_binary $TEST_RESULTS_CLI_URL "test-results" /tmp/self-hosted-Linux
include_external_darwin_binary $TEST_RESULTS_CLI_URL "test-results" /tmp/self-hosted-Darwin
include_external_linux_binary $SPC_CLI_URL "spc" /tmp/self-hosted-Linux
include_external_darwin_binary $SPC_CLI_URL "spc" /tmp/self-hosted-Darwin

curl -s -L --retry 5 $WHEN_CLI_URL/when -o /tmp/self-hosted-Linux/toolbox/when
chmod +x /tmp/self-hosted-Linux/toolbox/when
curl -s -L --retry 5 $WHEN_CLI_URL/when -o /tmp/self-hosted-Darwin/toolbox/when
chmod +x /tmp/self-hosted-Darwin/toolbox/when

cp ~/$SEMAPHORE_GIT_DIR/cache-cli/bin/linux/cache /tmp/self-hosted-Linux/toolbox/
cp ~/$SEMAPHORE_GIT_DIR/cache-cli/bin/darwin/cache /tmp/self-hosted-Darwin/toolbox/
}
Expand Down

0 comments on commit bf15131

Please sign in to comment.