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.
This commit is contained in:
Marco Trevisan (Treviño) 2017-10-18 15:04:10 -05:00
Родитель 41d372df2d
Коммит 7e9f303731
3 изменённых файлов: 7 добавлений и 5 удалений

Просмотреть файл

@ -11,8 +11,8 @@ env:
- DOCKER_IMAGE=ubuntu:xenial
- SNAP_PRIME_ON_PULL_REQUEST=true
- SNAP_DEPLOY_CHANNEL=edge
- SNAPCRAFT_CONFIG_KEY=''
- SNAPCRAFT_CONFIG_IV=''
- SNAPCRAFT_CONFIG_KEY=$encrypted_ad766d8d4221_key
- SNAPCRAFT_CONFIG_IV=$encrypted_ad766d8d4221_iv
matrix:
- BUILD_TYPE=appimage

Просмотреть файл

@ -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)

Двоичные данные
linux/travis_snapcraft.cfg Normal file

Двоичный файл не отображается.