snap: release untagged versions from branches to the candidate snap channel (#10357)
This commit is contained in:
parent
9cce6a47d4
commit
fa570f297e
@ -9,6 +9,7 @@ set -u # treat unset variables as error
|
|||||||
TRACK=`awk -F '=' '/^track/ {gsub(/"/, "", $2); gsub(/ /, "", $2); print $2}' ./util/version/Cargo.toml`
|
TRACK=`awk -F '=' '/^track/ {gsub(/"/, "", $2); gsub(/ /, "", $2); print $2}' ./util/version/Cargo.toml`
|
||||||
echo Track is: $TRACK
|
echo Track is: $TRACK
|
||||||
|
|
||||||
|
# Choose snap release channel based on parity ethereum version track
|
||||||
case ${TRACK} in
|
case ${TRACK} in
|
||||||
nightly) export GRADE="devel" CHANNEL="edge";;
|
nightly) export GRADE="devel" CHANNEL="edge";;
|
||||||
beta) export GRADE="stable" CHANNEL="beta";;
|
beta) export GRADE="stable" CHANNEL="beta";;
|
||||||
@ -16,6 +17,11 @@ case ${TRACK} in
|
|||||||
*) echo "No release" && exit 0;;
|
*) echo "No release" && exit 0;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
# Release untagged versions from branches to the candidate snap channel
|
||||||
|
case ${CI_COMMIT_REF_NAME} in
|
||||||
|
beta|stable) export GRADE="stable" CHANNEL="candidate";;
|
||||||
|
esac
|
||||||
|
|
||||||
VERSION="v"$VERSION
|
VERSION="v"$VERSION
|
||||||
SNAP_PACKAGE="parity_"$VERSION"_"$BUILD_ARCH".snap"
|
SNAP_PACKAGE="parity_"$VERSION"_"$BUILD_ARCH".snap"
|
||||||
|
|
||||||
@ -49,8 +55,5 @@ echo "Release channel :" $CHANNEL " Branch/tag: " $CI_COMMIT_REF_NAME
|
|||||||
echo $SNAPCRAFT_LOGIN_PARITY_BASE64 | base64 --decode > snapcraft.login
|
echo $SNAPCRAFT_LOGIN_PARITY_BASE64 | base64 --decode > snapcraft.login
|
||||||
snapcraft login --with snapcraft.login
|
snapcraft login --with snapcraft.login
|
||||||
snapcraft push --release $CHANNEL $SNAP_PACKAGE
|
snapcraft push --release $CHANNEL $SNAP_PACKAGE
|
||||||
case ${CHANNEL} in
|
|
||||||
beta) snapcraft push --release candidate $SNAP_PACKAGE;;
|
|
||||||
esac
|
|
||||||
snapcraft status parity
|
snapcraft status parity
|
||||||
snapcraft logout
|
snapcraft logout
|
||||||
|
Loading…
Reference in New Issue
Block a user