Skip to content

Commit

Permalink
Fix: Use Node.js 20 and SSH keys for deployment.
Browse files Browse the repository at this point in the history
  • Loading branch information
PromiseFru committed Nov 14, 2024
1 parent 1c3a92f commit 1bcd65f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/prod-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Setup NodeJs
uses: actions/setup-node@v4
with:
node-version: 22
node-version: 20

- name: Create .env.local file
run: echo "BASE_URL=${{ secrets.BASE_URL }}" > .env.local
Expand All @@ -35,7 +35,7 @@ jobs:
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
key: ${{ secrets.KEY }}
source: "./out/*"
target: ${{ secrets.BUILD_PATH }}
strip_components: 1
Expand All @@ -46,7 +46,7 @@ jobs:
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
key: ${{ secrets.KEY }}
script: |
set -e
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:22-alpine as build
FROM node:20-alpine as build
WORKDIR /app

RUN npm install -g pnpm
Expand Down

0 comments on commit 1bcd65f

Please sign in to comment.