-
Notifications
You must be signed in to change notification settings - Fork 165
/
publish-installer.sh
executable file
·45 lines (34 loc) · 1.08 KB
/
publish-installer.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/usr/bin/env bash
set -e
cd "$(dirname "$0")/.."
# check does it need to publish
if [[ -n $DO_NOT_PUBLISH_TAR ]]; then
echo "Skipping publishing install wrapper"
exit 0
fi
# check channel and tag
eval "$(ci/channel-info.sh)"
if [[ -n "$CI_TAG" ]]; then
CHANNEL_OR_TAG=$CI_TAG
else
CHANNEL_OR_TAG=$CHANNEL
fi
if [[ -z $CHANNEL_OR_TAG ]]; then
echo +++ Unable to determine channel or tag to publish into, exiting.
exit 0
fi
# upload install script
source ci/upload-ci-artifact.sh
cat >release.jito.wtf-install <<EOF
SOLANA_RELEASE=$CHANNEL_OR_TAG
SOLANA_INSTALL_INIT_ARGS=$CHANNEL_OR_TAG
SOLANA_DOWNLOAD_ROOT=https://release.jito.wtf
EOF
cat install/agave-install-init.sh >>release.jito.wtf-install
echo --- GCS: "install"
upload-gcs-artifact "/solana/release.jito.wtf-install" "gs://jito-release/$CHANNEL_OR_TAG/install"
# Jito added - releases need to support S3
echo --- AWS S3 Store: "install"
upload-s3-artifact "/solana/release.jito.wtf-install" "s3://release.jito.wtf/$CHANNEL_OR_TAG/install"
echo Published to:
ci/format-url.sh https://release.jito.wtf/"$CHANNEL_OR_TAG"/install