Publish solana-docker releases (#7460)

This commit is contained in:
Jack May 2019-12-12 16:15:31 -08:00 committed by GitHub
parent 115bf2613d
commit cc5408482e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 5 deletions

View File

@ -33,7 +33,7 @@ else
fi
if [[ -z $CHANNEL_OR_TAG ]]; then
echo +++ Unable to determine channel to publish into, exiting.
echo +++ Unable to determine channel or tag to publish into, exiting.
exit 0
fi

View File

@ -5,8 +5,15 @@ cd "$(dirname "$0")"/../..
eval "$(ci/channel-info.sh)"
source ci/rust-version.sh
if [[ -z $CHANNEL ]]; then
echo Unable to determine channel to publish into, exiting.
CHANNEL_OR_TAG=
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.
echo "^^^ +++"
exit 0
fi
@ -18,7 +25,7 @@ rm -rf usr/
cp -f ../../run.sh usr/bin/solana-run.sh
docker build -t solanalabs/solana:"$CHANNEL" .
docker build -t solanalabs/solana:"$CHANNEL_OR_TAG" .
maybeEcho=
if [[ -z $CI ]]; then
@ -32,4 +39,4 @@ else
fi
)
fi
$maybeEcho docker push solanalabs/solana:"$CHANNEL"
$maybeEcho docker push solanalabs/solana:"$CHANNEL_OR_TAG"