diff options
author | Ken VanDine <ken@vandine.org> | 2019-03-08 00:24:16 +0300 |
---|---|---|
committer | Antenore Gatta <antenore@simbiosi.org> | 2019-03-08 00:24:16 +0300 |
commit | 3816b4c9b8a2284e64aefffd8512dcb17b191c1d (patch) | |
tree | 357e438a0f4a9044731346c16e4588c0c99140ed /.gitlab-ci.yml | |
parent | 7b41c7dfc652e5b8001c94d6d44ad677cf0bed10 (diff) |
Snap: Build snap in CI and publish to the edge channel for builds against master
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 099b37db2..3a2db8278 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -94,6 +94,12 @@ snap:build: - export SNAPCRAFT_BUILD_INFO=1 - apt-get -y update - snapcraft --destructive-mode + - | + if [ "$CI_COMMIT_REF_NAME" = "master" ]; then + echo $SNAPCRAFT_LOGIN | snapcraft login --with - + snapcraft push remmina*.snap --release edge + snapcraft logout + fi allow_failure: false artifacts: paths: ['./*.snap'] |