diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2019-09-23 21:42:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-23 21:42:05 +0200 |
commit | 6ce8d05a5b06d97a2897411fcbd4da6a3abb4d65 (patch) | |
tree | f1a568587344419697fbbd5e42f04a868adf6549 /.cirrus.yml | |
parent | f5951c7305306967a89de09d957ccd5699ec3f85 (diff) | |
parent | 387ffe7dd286b3fce14b802d2a84de363938d822 (diff) | |
download | podman-6ce8d05a5b06d97a2897411fcbd4da6a3abb4d65.tar.gz podman-6ce8d05a5b06d97a2897411fcbd4da6a3abb4d65.tar.bz2 podman-6ce8d05a5b06d97a2897411fcbd4da6a3abb4d65.zip |
Merge pull request #3969 from abitrolly/patch-1
Cirrus: Push snap continuously
Diffstat (limited to '.cirrus.yml')
-rw-r--r-- | .cirrus.yml | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/.cirrus.yml b/.cirrus.yml index 95092a900..241ac4b2b 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -627,6 +627,28 @@ verify_test_built_images_task: <<: *standardlogs +upload_snap_task: + + # Only when PR or branch is merged into master + only_if: $CIRRUS_BRANCH == $DEST_BRANCH + + depends_on: + - "test_building_snap" + + container: + image: yakshaveinc/snapcraft:core18 + + env: + SNAPCRAFT_LOGIN: ENCRYPTED[d8e82eb31c6372fec07f405f413d57806026b1a9f8400033531ebcd54d6750a5e4a8b1f68e3ec65c98c65e0d9b2a6a75] + 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: @@ -652,6 +674,7 @@ success_task: - "special_testing_endpoint" - "test_build_cache_images" - "test_building_snap" + - "upload_snap" - "verify_test_built_images" env: |