ci: update version strings for snaps (#9160)

This commit is contained in:
Afri Schoedon 2018-07-20 19:55:17 +02:00 committed by Denis S. Soldatov aka General-Beck
parent fb2b77e991
commit 6bee9cd1e4

View File

@ -198,7 +198,7 @@ case $BUILD_PLATFORM in
snapcraft clean snapcraft clean
echo "Prepare snapcraft.yaml for build on Gitlab CI in Docker image" echo "Prepare snapcraft.yaml for build on Gitlab CI in Docker image"
sed -i 's/git/'"$VER"'/g' snap/snapcraft.yaml sed -i 's/git/'"$VER"'/g' snap/snapcraft.yaml
if [[ "$CI_BUILD_REF_NAME" = "stable" || "$CI_BUILD_REF_NAME" = "beta" || "$VER" == *1.10* || "$VER" == *1.11* ]]; if [[ "$CI_BUILD_REF_NAME" = "stable" || "$CI_BUILD_REF_NAME" = "beta" || "$VER" == *1.11* || "$VER" == *2.0* ]];
then then
sed -i -e 's/grade: devel/grade: stable/' snap/snapcraft.yaml; sed -i -e 's/grade: devel/grade: stable/' snap/snapcraft.yaml;
fi fi