diff options
author | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2017-10-18 23:04:10 +0300 |
---|---|---|
committer | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2017-10-19 07:28:02 +0300 |
commit | 7e9f303731296bceedfb0a034489027720d26730 (patch) | |
tree | ad0ca9c1a38229bde7dba14d0e05deae39174d9c /linux | |
parent | 41d372df2d4c6938bc631545f4d45c3a5c79c4ed (diff) |
snap: add travis_snapcraft.cfg encyrpted macaron file to deploy to the store
This allows to automatically deploy on ubuntu store.
Macaron can only be decrypted using the snapcraft keys defined in travis.
Diffstat (limited to 'linux')
-rwxr-xr-x | linux/travis-build.sh | 8 | ||||
-rw-r--r-- | linux/travis_snapcraft.cfg | bin | 0 -> 2432 bytes |
2 files changed, 5 insertions, 3 deletions
diff --git a/linux/travis-build.sh b/linux/travis-build.sh index 8049151..dba042c 100755 --- a/linux/travis-build.sh +++ b/linux/travis-build.sh @@ -61,15 +61,17 @@ elif [ "$BUILD_TYPE" == "snap" ]; then exec $0 snap_transfer_deploy fi elif [ "$TRAVIS_BUILD_STEP" == "snap_store_deploy" ]; then + sudo mkdir -p $THIS_PATH/.snapcraft -m 777 set +x openssl aes-256-cbc -K $SNAPCRAFT_CONFIG_KEY \ -iv $SNAPCRAFT_CONFIG_IV \ - -in $THIS_PATH/snap/.snapcraft/travis_snapcraft.cfg \ - -out $THIS_PATH/snap/.snapcraft/snapcraft.cfg -d + -in $THIS_PATH/travis_snapcraft.cfg \ + -out $THIS_PATH/.snapcraft/snapcraft.cfg -d set -x ls $THIS_PATH/*.snap &> /dev/null || docker_exec snapcraft - docker_exec snapcraft push *.snap --release edge + snap=$(ls $THIS_PATH/*.snap -1 | head -n1) + docker_exec snapcraft push $snap --release edge elif [ "$TRAVIS_BUILD_STEP" == "snap_github_release" ]; then ls $THIS_PATH/*.snap &> /dev/null || docker_exec snapcraft snap=$(ls $THIS_PATH/*.snap -1 | head -n1) diff --git a/linux/travis_snapcraft.cfg b/linux/travis_snapcraft.cfg Binary files differnew file mode 100644 index 0000000..2a7c507 --- /dev/null +++ b/linux/travis_snapcraft.cfg |