diff --git a/.travis.yml b/.travis.yml index 917c6f2..eac6a38 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,6 +18,6 @@ jobs: env: global: - REPO="git@github.com:SpringSocialMicrosoft/spring-social-partnercenter.git" - - secure: CLFHlNcuLlb4vVUJ5q9hC51nEKghHXh2YXYw1vsVsNI\+fFNsqWZLJYWc\+HQ90yfS346mqRA\/VhZHvlnwNWAt\+YphVGOBRk2ogwYaHPzaeH9oBv0ihTbUhRQQCTdSAEymH8wXMP1uf\/z3PLVuhL7eCiNeny0zmBjJX89cHFXQAUMOtmudyU\/0S2pAZj2WhfnIceZDgCYBuJOEIlrRzfSlA8OIp0kkCB5TwSeqt97jMDZGX19B4cHi75mMIjJ8y6moMKUqAQ023rbgkx2Swxbk9f\+nEd\/Wv\/ov1AjprfDd9FBlCnCeHmLi4Q8ucNoQ6u5Praq8b\+0jEyZpWMgaqi7OofVt\+uiPTOrp7w5HKgkHxqw3PSQ5ID\+JkEjNgI1ZEypU5oXrxzGXA\/gOijO1L8kE1OiUFXuwI3OStdBkjRjQIm2zm8vcgbZW2z8xTozUNyWNr04utD5zjnKSpHHvExL2fuzyKpWNDuSXlKsm5jUjHFNkciin2e0FElln3Qy1ALrKPDwndj6qM1xmvuxPMN2cHONe\+kilphV2rOfG6dt1iuczW7H7Sinj0T8Z30MSgaKgReVm\/7wI3YazXMaBoxWjwdRwiUjbDwLKZswU\/p5\+WfcGKbr5uBq\/cAGOXk6MDV4lwcLqosNT9HFAr\+WAxEfoCNFe1\/7n8OtMzoOfymTaKXQ= + - secure: m6oJVaWggYhSRF67ftMlV3obMBumAqGpfcCNAXTBxocPgPVK/IMe6/yigeXhEhZ1tqy8Exw8eUYaA1rMxql8tjWp6o61B810fpfcVIOsZNyATJPTgxkYAHwcsTU6vbxTbnieOfnL3DlMhSApeXTI0J4BQan05UCxz39pzCprLHuqO3vTGVlPjKbfRqv5tt5eh+s/J/hkz9fz2hZFL25ed/7WbhZrrIU4E7RRYpqB7XEvseFUwGShDShhVUThnu58UKWt8un+Xj+dml9jbioAUHVOBBo6eY6LgfPpdiFXdWC72/UmjW1GBz2xXE+CvbrGuEBkhK7F/Dncd1V1yFi4N8UBrulWDp9zKpQitN0NY/Fe+EtRT1LR1o8QuYNbzja2WI8UkMynmdHxc7epZ5cHbEw97hZp+nZGr2cswN0UbRduLr0t1IeIya04nndgP5iVzokgWPXmMlYHuEilvBuNTdjkca4EQtkzrsm8JahKzOOQO9SXvEuxjDZ0wm/CzTd1nY9ZwrgU6huAUSWBYl8Fj0PDnOi5AbL4NpEx/u7EPGJcb43g70mYAUArLBdoAzWewsz1jS8/015wuAl2IO1H1vuoDkSVMGkl6Mqax/v9uepHgNY88kwXfIDzhkxVDtKbcieWe491+iEsBB7AKz/Q61+aAviIGJMpJUrb9p37eaw= before_install: - - openssl aes-256-cbc -k "$secret_password" -in ./.travis/id_rsa_github.enc -out ./.travis/id_rsa_github -d +- echo "$key_password" | gpg -o .travis/id_rsa_partner_center.dec --passphrase-fd 0 .travis/id_rsa_partner_center.enc diff --git a/.travis/id_rsa_partner_center.enc b/.travis/id_rsa_partner_center.enc new file mode 100644 index 0000000..5a87c76 Binary files /dev/null and b/.travis/id_rsa_partner_center.enc differ diff --git a/.travis/scripts/before.sh b/.travis/scripts/before.sh index ca7d916..2ec6353 100644 --- a/.travis/scripts/before.sh +++ b/.travis/scripts/before.sh @@ -1,4 +1,4 @@ #!/usr/bin/env bash -ssh-add .ssh/id_rsa_github +ssh-add .travis/id_rsa_partner_center.dec git remote add release ${REPO} diff --git a/.travis/scripts/travis-release.sh b/.travis/scripts/travis-release.sh index 30afe06..15a7f0b 100755 --- a/.travis/scripts/travis-release.sh +++ b/.travis/scripts/travis-release.sh @@ -7,15 +7,15 @@ echo ${last_merged_pr_branch} if [[ ${last_merged_pr_branch} =~ ^release/major/.* ]]; then echo "Creating Major Release" - gradle release -Prelease.disableChecks -Prelease.pushTagsOnly -Prelease.customKeyFile=".travis/id_rsa_github" -Prelease.versionIncrementer=incrementMajor -s; + gradle release -Prelease.disableChecks -Prelease.pushTagsOnly -Prelease.customKeyFile=".travis/id_rsa_partner_center.dec" -Prelease.versionIncrementer=incrementMajor -s; elif [[ ${last_merged_pr_branch} =~ ^release/minor/.* ]]; then echo "Creating Minor Release" - gradle release -Prelease.disableChecks -Prelease.pushTagsOnly -Prelease.customKeyFile=".travis/id_rsa_github" -Prelease.versionIncrementer=incrementMinor -s; + gradle release -Prelease.disableChecks -Prelease.pushTagsOnly -Prelease.customKeyFile=".travis/id_rsa_partner_center.dec" -Prelease.versionIncrementer=incrementMinor -s; elif [[ ${last_merged_pr_branch} =~ ^release/.* ]]; then echo "Creating Patch Release" - gradle release -Prelease.disableChecks -Prelease.pushTagsOnly -Prelease.customKeyFile=".travis/id_rsa_github" -Prelease.versionIncrementer=incrementPatch -s; + gradle release -Prelease.disableChecks -Prelease.pushTagsOnly -Prelease.customKeyFile=".travis/id_rsa_partner_center.dec" -Prelease.versionIncrementer=incrementPatch -s; else echo "Release Regex not matched. No release will be built." fi