Remove SNAP_ prefix
This commit is contained in:
14
ci/snap.sh
14
ci/snap.sh
@ -10,14 +10,14 @@ fi
|
|||||||
eval "$(ci/channel-info.sh)"
|
eval "$(ci/channel-info.sh)"
|
||||||
|
|
||||||
if [[ $BUILDKITE_BRANCH = "$STABLE_CHANNEL" ]]; then
|
if [[ $BUILDKITE_BRANCH = "$STABLE_CHANNEL" ]]; then
|
||||||
SNAP_CHANNEL=stable
|
CHANNEL=stable
|
||||||
elif [[ $BUILDKITE_BRANCH = "$EDGE_CHANNEL" ]]; then
|
elif [[ $BUILDKITE_BRANCH = "$EDGE_CHANNEL" ]]; then
|
||||||
SNAP_CHANNEL=edge
|
CHANNEL=edge
|
||||||
elif [[ $BUILDKITE_BRANCH = "$BETA_CHANNEL" ]]; then
|
elif [[ $BUILDKITE_BRANCH = "$BETA_CHANNEL" ]]; then
|
||||||
SNAP_CHANNEL=beta
|
CHANNEL=beta
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -z $SNAP_CHANNEL ]]; then
|
if [[ -z $CHANNEL ]]; then
|
||||||
echo Unable to determine channel to publish into, exiting.
|
echo Unable to determine channel to publish into, exiting.
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
@ -51,11 +51,11 @@ if [[ ! -x /usr/bin/multilog ]]; then
|
|||||||
sudo apt-get install -y daemontools
|
sudo apt-get install -y daemontools
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo --- build: $SNAP_CHANNEL channel
|
echo --- build: $CHANNEL channel
|
||||||
snapcraft
|
snapcraft
|
||||||
|
|
||||||
source ci/upload_ci_artifact.sh
|
source ci/upload_ci_artifact.sh
|
||||||
upload_ci_artifact solana_*.snap
|
upload_ci_artifact solana_*.snap
|
||||||
|
|
||||||
echo --- publish: $SNAP_CHANNEL channel
|
echo --- publish: $CHANNEL channel
|
||||||
$DRYRUN snapcraft push solana_*.snap --release $SNAP_CHANNEL
|
$DRYRUN snapcraft push solana_*.snap --release $CHANNEL
|
||||||
|
Reference in New Issue
Block a user