Skip to content

Commit

Permalink
Merge pull request #51 from ntedgi/#39-feature/create-an-automate-dep…
Browse files Browse the repository at this point in the history
…loymen-to-playground

create-an-automate-deployment-to-playground
  • Loading branch information
ntedgi authored Apr 10, 2021
2 parents 61f2261 + 1b14f22 commit a9b50f1
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 27 deletions.
26 changes: 0 additions & 26 deletions .github/workflows/coverage.yml

This file was deleted.

16 changes: 16 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Deploy Landing Page
on: [push]
jobs:

build:
name: Build
runs-on: ubuntu-latest
steps:
- name: executing remote ssh commands using password
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.DEPLOY_HOST }}
username: ${{ secrets.DEPLOY_USER }}
key: ${{ secrets.DEPLOY_KEY }}
script: cd node-efficientnet && git pull && npm run deploy:playground

7 changes: 7 additions & 0 deletions deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash
set -e
set -x
cd playground
docker-compose down
docker system prune -a < y
docker-compose up -d
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"lint:md": "remark .",
"test:unit":"jest --clearCache && jest --coverage",
"test:prapare":"npm link && cd tester && npm link node-efficientnet",
"test:playground": "cd playground/server && npm i && npm test"
"test:playground": "cd playground/server && npm i && npm test",
"deploy:playground": "sh deploy.sh"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit a9b50f1

Please sign in to comment.