add snapcraft package image (#9583)

* add snapcraft package image

* Update .gitlab-ci.yml

* remove snapcraft clean
This commit is contained in:
Denis S. Soldatov aka General-Beck 2018-09-18 16:32:05 +03:00 committed by Afri Schoedon
parent d147700046
commit 363ad10906
2 changed files with 2 additions and 2 deletions

View File

@ -176,6 +176,7 @@ build-windows-msvc-x86_64:
package-linux-snap-amd64: &package_snap
stage: package
only: *releaseable_branches
image: parity/snapcraft:gitlab-ci
cache: {}
before_script: *determine_version
variables:
@ -218,7 +219,7 @@ package-linux-snap-armhf:
publish-linux-snap-amd64: &publish_snap
stage: publish
only: *publishable_branches
image: snapcore/snapcraft:stable
image: parity/snapcraft:gitlab-ci
cache: {}
before_script: *determine_version
variables:

View File

@ -11,7 +11,6 @@ esac
SNAP_PACKAGE="parity_"$VERSION"_"$BUILD_ARCH".snap"
echo "__________Create snap package__________"
echo "Release channel :" $GRADE " Branch/tag: " $CI_COMMIT_REF_NAME
snapcraft clean
echo $VERSION:$GRADE:$BUILD_ARCH
cat scripts/gitlab/templates/snapcraft.template.yaml | envsubst '$VERSION:$GRADE:$BUILD_ARCH:$CARGO_TARGET' > snapcraft.yaml
cat snapcraft.yaml