Update gitlab-build.sh

fix conditions for snap build stable ``TAG``
This commit is contained in:
Denis S. Soldatov aka General-Beck 2018-02-01 22:25:22 +03:00 committed by GitHub
parent 98cccd5b26
commit 1952d05d9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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