Skip to content

Commit

Permalink
Add deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
InCogNiTo124 committed Mar 30, 2022
1 parent 9dcac30 commit ad68c4e
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 3 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: deploy on production
on:
# Deploy only when pushed directly to the master
push:
branches:
- master
jobs:
deploy:
name: deploy
runs-on: ubuntu-latest
steps:
- name: ssh to my production server and do manual deploy
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
port: ${{ secrets.PORT }}
key: ${{ secrets.SSH_KEY }}
script: |
cd ${{ github.event.repository.name }} &&
git checkout -f master &&
git pull -f &&
make
11 changes: 8 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@ services:
- "traefik.http.routers.orbit.tls=true"
- "traefik.http.routers.orbit.tls.certresolver=le"
- "traefik.http.services.orbit.loadbalancer.server.scheme=http"
- "traefik.http.services.orbit.loadbalancer.server.port=80"
- "traefik.http.services.orbit.loadbalancer.server.port=6090"
- "traefik.docker.network=traefik_default"
ports:
- "6090:3000"
expose:
- "6090"
command:
- "serve"
- "dist"
- "-p"
- "6090"

0 comments on commit ad68c4e

Please sign in to comment.