From 9fc6abf2a80dd97f956463e44ea0ff5e3f0b15ae Mon Sep 17 00:00:00 2001 From: Anatoli Babenia Date: Sun, 8 Sep 2019 21:45:44 +0300 Subject: Cirrus: Push snap continuously Signed-off-by: Anatoli Babenia --- .cirrus.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.cirrus.yml b/.cirrus.yml index 95092a900..a65b41bfd 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -627,6 +627,25 @@ verify_test_built_images_task: <<: *standardlogs +upload_snap_task: + + depends_on: + - "test_building_snap" + + container: + image: yakshaveinc/snapcraft:core18 + + env: + SNAPCRAFT_LOGIN: ENCRYPTED[...FILLME...] + snapcraft_login_file: + path: /root/.snapcraft/login.cfg + variable_name: SNAPCRAFT_LOGIN + snapcraft_script: + - 'apt-get -y update' + - 'snapcraft login --with "/root/.snapcraft/login.cfg"' + - 'cd contrib/snapcraft && snapcraft && snapcraft push *.snap --release edge' + + # Post message to IRC if everything passed PR testing success_task: -- cgit v1.2.3-54-g00ecf