2018-11-11 08:19:04 -08:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
set -e
|
2018-10-29 11:43:33 -07:00
|
|
|
|
|
|
|
cd "$(dirname "$0")/.."
|
2018-11-14 09:23:35 -08:00
|
|
|
eval "$(ci/channel-info.sh)"
|
2018-10-29 11:43:33 -07:00
|
|
|
|
|
|
|
echo --- Creating tarball
|
|
|
|
(
|
|
|
|
set -x
|
2018-12-01 09:59:08 -08:00
|
|
|
sdk/bpf/scripts/package.sh
|
2018-11-26 10:35:24 -08:00
|
|
|
[[ -f bpf-sdk.tar.bz2 ]]
|
2018-10-29 11:43:33 -07:00
|
|
|
)
|
|
|
|
|
|
|
|
echo --- AWS S3 Store
|
2018-11-14 09:23:35 -08:00
|
|
|
if [[ -z $CHANNEL ]]; then
|
|
|
|
echo Skipped
|
|
|
|
else
|
|
|
|
(
|
|
|
|
set -x
|
2018-12-19 12:57:34 -08:00
|
|
|
docker run \
|
|
|
|
--rm \
|
|
|
|
--env AWS_ACCESS_KEY_ID \
|
|
|
|
--env AWS_SECRET_ACCESS_KEY \
|
|
|
|
--volume "$PWD:/solana" \
|
|
|
|
eremite/aws-cli:2018.12.18 \
|
|
|
|
/usr/bin/s3cmd --acl-public put /solana/bpf-sdk.tar.bz2 \
|
2018-11-14 09:23:35 -08:00
|
|
|
s3://solana-sdk/"$CHANNEL"/bpf-sdk.tar.bz2
|
|
|
|
)
|
2018-10-29 11:43:33 -07:00
|
|
|
fi
|
|
|
|
|
|
|
|
exit 0
|