Skip to content

Commit

Permalink
Merge pull request #167 from lowercasename/rk/deploy-via-docker
Browse files Browse the repository at this point in the history
Switch to deploy via Docker Compose
  • Loading branch information
lowercasename authored Aug 10, 2024
2 parents 0e01f8f + f974269 commit f150caf
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 39 deletions.
16 changes: 3 additions & 13 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,6 @@ jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9

- name: Set up known_hosts file
run: |
mkdir -p ~/.ssh/ && touch ~/.ssh/known_hosts
Expand All @@ -26,8 +18,6 @@ jobs:
with:
ssh-private-key: ${{ secrets.SSH_KEY }}

- name: Install PM2
run: pnpm install -g pm2

- name: Deploy
run: pnpm run deploy
- name: Run deploy script
run: |
ssh -o StrictHostKeyChecking=no ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} 'cd ${{ secrets.DEPLOY_PATH }} && ./deploy.sh'
2 changes: 1 addition & 1 deletion .github/workflows/publish-ghcr.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish to GHCR
name: CI / Publish to GHCR
on:
workflow_dispatch:
push:
Expand Down
23 changes: 0 additions & 23 deletions deploy.sh

This file was deleted.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@
"start": "node dist/start.js",
"dev": "nodemon -e ts,js --watch src --exec \"pnpm run build ; pnpm run start\"",
"test:dev": "CYPRESS=true pnpm run dev & wait-on http://localhost:3000 && cypress open --e2e --browser chrome",
"test": "pnpm run build || true && CYPRESS=true pnpm run start & wait-on http://localhost:3000 && cypress run --e2e --browser chrome",
"deploy": "pm2 deploy ecosystem.config.cjs production"
"test": "pnpm run build || true && CYPRESS=true pnpm run start & wait-on http://localhost:3000 && cypress run --e2e --browser chrome"
},
"engines": {
"node": ">=16.16.0"
Expand Down

0 comments on commit f150caf

Please sign in to comment.