Skip to content

Commit

Permalink
Updated secrets.
Browse files Browse the repository at this point in the history
  • Loading branch information
abice committed Nov 14, 2016
1 parent 1e870a3 commit 528330c
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .drone.sec
Original file line number Diff line number Diff line change
@@ -1 +1 @@
eyJhbGciOiJSU0EtT0FFUCIsImVuYyI6IkExMjhHQ00ifQ.O4pG8W0L9qcAjOiZrNWffHqsdjxSiDaJgpWyhT-eqRB7_5mv-GqeGASb2FZseyXsRMTa52DDfliE6_TlLrdI5hVcvpsdIHBrs-FmcnO9o3L9ta00bEmffF9STE7iwQbad5285EBBAumqtaIrpqwt3fcLDohg2NBKjG5iBuCJryBjnI2cSykv3IiYaE1zwJoa4L9YS6ccqcouaiW9wKU79Wzrhgz-H2fFcAQU3En0WIOkTjxOYz-k2KD5fpFlbGYzqPrOJVdeTnKfKfU3bD_ycws5x9c3QTDJdAsffEcLb9vFiw66mhGMn8Vpp_1XagWP5kp6Wysh_cYY1Jvhcv-B7w.9V6H5HZNuiHxUVU8.7o13_rlodv0T923G_3Vn4rsjtNyoVA_wfQvedF7cRr13BE12pIwMUaZCs9qvDTSOID3yu40QryCzMUQSRducHkznP1xTxl-S9qGau04dYkdxQBdNY59o1vnS1uMejRc3xz4Cns1eO0d8WtokeBldWGRA5tdWC91Oxj_-P2pVljzvhrWQDxqJypQccvZS.CPSuWgMtg1hDgjx4KFdmNQ
eyJhbGciOiJSU0EtT0FFUCIsImVuYyI6IkExMjhHQ00ifQ.PY5eorbqrcavHlep_L8T1b-pvKCH6g78hsiuJgLwOAhwrIdbH1K6KOjo4Bwa-9cs78wpGR7BIGw5u5vUng44CJkLB012ajH_PZIlr2yFpv8j18d-ZwE6P73I1OvYqt9BMNODKtSzIMwioV5fThC9TM4uvkTdhU69_H_5yHxFYxQmsKxvGSnafTVavUU-QMWY68vWPMJEne2gYAHKbK41JmRdQMLLKGH8_Yl21sTZ_zGT1TVOds-7QyP6bPiuzlxKdxUJkKIJMWcgolF7QZ3aRyJZ3zHIF61h9FfpnAPV5839HJIceBb-POXs0pko_erWl00RjfdwruZjn7e5xGbJnA.fNrkLpuLI3gUtFWd.j9SHxIQIynysuP0OShAuytTSvHD19352oiZrR2Ol0IudtTraxizpRpOj5-0S2GDMsuv8l0fcUeD1Sel2aH5_ZT_j301X28DcOsf_TqQlw-DUJTwPxNAvNUoUj4r2GxdMo_izk6drKvu-cmCl8Jj0MXsswzK93-VI6e-zM5jI5hkSqN0ZMrG0Dt60f3g8.cHMJfC9ZNudYKt_Ux-5Nrw
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,4 @@ coverage/
vendor/
bin/
*.diff
/secrets.yml
1 change: 1 addition & 0 deletions secrets.e.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Salted__ݏÇH㠶ʼU/3­ê¢³l]’e#Ö3ùúòR÷bxu?. ¨‹Îé¦&|ákà^žÅR€E©ùO>I¾õ5…8rv¡:ïôR§Nûí
25 changes: 25 additions & 0 deletions secrets.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/bin/sh

encrypt() {
openssl des3 -in secrets.yml -out secrets.e.yml
}

decrypt() {
openssl des3 -d -in secrets.e.yml -out secrets.yml
}

update() {
openssl des3 -d -in secrets.e.yml -out secrets.yml
drone secure --repo abice/gencheck --in secrets.yml
rm secrets.yml
}

if [ "$1" = "d" ]; then
decrypt
elif [ "$1" = "e" ]; then
encrypt
elif [ "$1" = "u" ]; then
update
else
echo "Either 'e' or 'd'"
fi

0 comments on commit 528330c

Please sign in to comment.