Publish solana-docker releases (#7460)
This commit is contained in:
parent
115bf2613d
commit
cc5408482e
|
@ -33,7 +33,7 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -z $CHANNEL_OR_TAG ]]; then
|
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
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -5,8 +5,15 @@ cd "$(dirname "$0")"/../..
|
||||||
eval "$(ci/channel-info.sh)"
|
eval "$(ci/channel-info.sh)"
|
||||||
source ci/rust-version.sh
|
source ci/rust-version.sh
|
||||||
|
|
||||||
if [[ -z $CHANNEL ]]; then
|
CHANNEL_OR_TAG=
|
||||||
echo Unable to determine channel to publish into, exiting.
|
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 "^^^ +++"
|
echo "^^^ +++"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
@ -18,7 +25,7 @@ rm -rf usr/
|
||||||
|
|
||||||
cp -f ../../run.sh usr/bin/solana-run.sh
|
cp -f ../../run.sh usr/bin/solana-run.sh
|
||||||
|
|
||||||
docker build -t solanalabs/solana:"$CHANNEL" .
|
docker build -t solanalabs/solana:"$CHANNEL_OR_TAG" .
|
||||||
|
|
||||||
maybeEcho=
|
maybeEcho=
|
||||||
if [[ -z $CI ]]; then
|
if [[ -z $CI ]]; then
|
||||||
|
@ -32,4 +39,4 @@ else
|
||||||
fi
|
fi
|
||||||
)
|
)
|
||||||
fi
|
fi
|
||||||
$maybeEcho docker push solanalabs/solana:"$CHANNEL"
|
$maybeEcho docker push solanalabs/solana:"$CHANNEL_OR_TAG"
|
||||||
|
|
Loading…
Reference in New Issue