Publish solana-docker releases (#7460)
This commit is contained in:
parent
115bf2613d
commit
cc5408482e
|
@ -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
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue