Skip to content

Commit

Permalink
added snap nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed May 3, 2018
1 parent cf75ce9 commit 99e8228
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,14 @@ jobs:
# - run: ./scripts/release/dev_center_docs
# - store_artifacts:
# path: /tmp/heroku-cli-commands-test.md
snap:
docker:
- image: snapcore/snapcraft:stable
environment:
LC_ALL: C.UTF-8
steps:
- checkout
- run: ./scripts/snap
workflows:
version: 2
heroku_cli:
Expand Down Expand Up @@ -115,3 +123,13 @@ workflows:
ignore: /.*/
tags:
only: /^v.*/
nightly:
triggers:
- schedule:
cron: "0 14 * * *"
filters:
branches:
only:
- master
jobs:
- snap
16 changes: 16 additions & 0 deletions scripts/snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/usr/bin/env bash

set -eux

mkdir -p ~/.config/snapcraft
set +x && echo "$SNAPCRAFT_MACAROON" | base64 --decode > ~/.config/snapcraft/snapcraft.cfg && set -x

LATEST_64=$(snapcraft list-revisions heroku --arch amd64 | grep -v git | head -n 2 | tail -n 1 | awk '{print $1}')
snapcraft release heroku "$LATEST_64" beta
snapcraft release heroku "$LATEST_64" candidate
snapcraft release heroku "$LATEST_64" stable

LATEST_ARM=$(snapcraft list-revisions heroku --arch armhf | grep -v git | head -n 2 | tail -n 1 | awk '{print $1}')
snapcraft release heroku "$LATEST_ARM" beta
snapcraft release heroku "$LATEST_ARM" candidate
snapcraft release heroku "$LATEST_ARM" stable

0 comments on commit 99e8228

Please sign in to comment.