From 6dd77ec5d2bba6800d9fa6e1dd8dbf454c91c113 Mon Sep 17 00:00:00 2001 From: VitalikL Date: Thu, 3 Feb 2022 20:48:41 -0500 Subject: [PATCH] Deployment to AWS --- .github/workflows/deploy.yml | 23 +++++++++++++++++++++++ .travis.yml | 9 --------- deploy-creds.tar.enc | Bin 10256 -> 0 bytes package.json | 26 -------------------------- 4 files changed, 23 insertions(+), 35 deletions(-) create mode 100644 .github/workflows/deploy.yml delete mode 100644 .travis.yml delete mode 100644 deploy-creds.tar.enc delete mode 100644 package.json diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..7b4bdc1 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,23 @@ +name: deploy +on: + push: + branches: + - master + - stage +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Extract branch name + shell: bash + run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})" + id: extract_branch + - run: zip -9 -x .git/\* -x .github/\* -x .gitignore -x build.js -x README.md -r sabbath-school-reader-latest.zip . + - run: curl https://s3.amazonaws.com/aws-cli/awscli-bundle.zip -o awscli-bundle.zip + - run: unzip awscli-bundle.zip + - run: ./awscli-bundle/install -b ~/bin/aws + - run: aws s3 cp sabbath-school-reader-latest.zip s3://sabbath-school`[[ "${{ steps.extract_branch.outputs.branch }}" = "stage" ]] && echo '-stage'`.adventech.io/reader/ --acl "public-read" --region us-east-1 --no-progress + env: + AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 4c8956b..0000000 --- a/.travis.yml +++ /dev/null @@ -1,9 +0,0 @@ -language: node_js -node_js: -- '6' -env: -- MAJOR_VERSION="0." -before_install: -- openssl aes-256-cbc -K $encrypted_00b73395d134_key -iv $encrypted_00b73395d134_iv -in deploy-creds.tar.enc -out deploy-creds.tar -d -- tar xvf deploy-creds.tar -script: node build.js -b $TRAVIS_BRANCH \ No newline at end of file diff --git a/deploy-creds.tar.enc b/deploy-creds.tar.enc deleted file mode 100644 index 8da7a1bf6907d8b0ff254ac20db9cc47c7a8c318..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 10256 zcmV+rDDT%ls;oz$t6#4vXVV1ZGc|sFs?z)1{KKO}p8*Xsq@d_%UoUgPt?A*#E7gh(R=nRUnRK{iWU;*8V&Mla0Bw-gL<9K^t z+XJ|;0Y?Z7Nuaf^9GJr|KHSBwt`{QXnj^;r3gAY5R3h+-`kBh9HZnUAxV3) zymkH$HvwC9YkP<~l!jfo+eqP@+*#NZVAtzy765<`tZ7dE1V0FCMGy|Y)u!SuCQI%- z0buf1jsX6)53*4|PU~>UxI;7nmKL~6DOExL7iMCTNfnr2GEv<9CHq$x77b_kYj};Lq6AIEvPFPL-XN4CD1~N zGj-oi`o5J?6{}CmsXCx?=<8du34=cHU-V1zu|t^#FHKqPJFVqdXC{xLrZY!6=+l)0 z#;Vid3^Vb$*V zdzqK+e9yTze^CRA$f18N!>@L@O=GlzheCj3oE)mgbB|CO16ul6;;CAwN{HTLZ6CSNvzh+b`4mG)gSOQx4nOc+nSNG1vEZ} z9eF_-Zjq~MPswajcU((pl1NF#&gsQrW&U=h6;&vaPxB*+f|1*kWunGE>cQsf_5~$+ zc)$-TobzJPG7T(~9cJ&jKh4@QdvXcxByv?}S`b3Ss+uCQrq;MMy!Pg*TI*+|!bDdR z{f*2CMPSDGD+)Jkx^Qd)=N;@hd4&b1?nOnB4*QYxjL5j>zxeumWmoZi=Kdr?fQ4n# z195YfGIzw<>18_It=(t_9gTy62VPZrCPrsPeQLj$I=CJg-JJGFN3_jNy z)=`<^m4kC9NR$qBS~ z&f|li&WsrKKeQ)*C+{O%KG8-(Q3$aZ-Z?F1MM7sL0fkvl+Tie$CapE&Yx``n zvemt-U2hZ^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sj%zgWCU2#Msq-kiC^ka~efDF}cV}QhRB+EX zI^szFaC%dnIW6zb=mDVGiKb*$kqJe*$jepT8vv6=ga(g&F2uMim{=XIPeBmMWx|jh zGn1#R4JF(~&hGDEnLjGuU$hhA#f_5dS)(koJtt|v2~MI`Sqz!Tf-8p9KpV~|tU9oT WDGGvGACZx@58%pVnp&`l9hz-@68!-H diff --git a/package.json b/package.json deleted file mode 100644 index 5dc08ef..0000000 --- a/package.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "name": "sabbath-school-reader", - "version": "0.0.1", - "description": "", - "main": "index.js", - "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/Adventech/sabbath-school-reader.git" - }, - "author": "", - "license": "ISC", - "bugs": { - "url": "https://github.com/Adventech/sabbath-school-reader/issues" - }, - "homepage": "https://github.com/Adventech/sabbath-school-reader#readme", - "dependencies": { - "@google-cloud/storage": "^1.1.1", - "archiver": "^1.3.0" - }, - "devDependencies": { - "optimist": "^0.6.1" - } -}