Skip to content

Commit

Permalink
fixed docker node versions to support mysql
Browse files Browse the repository at this point in the history
  • Loading branch information
kaxada committed Dec 15, 2023
1 parent fb218ce commit 2e918d6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 32 deletions.
31 changes: 0 additions & 31 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,7 @@
# IMAGE_NAME: "project_badging"

# jobs:
# build:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - name: Install dependencies
# run: npm install
# - name: Lint code
# run: npm run format

# deploy:
# needs: build
# runs-on: ubuntu-latest
# if: github.ref == 'refs/heads/main' && github.event_name == 'push'
# steps:
Expand Down Expand Up @@ -102,24 +92,3 @@ jobs:
password: ${{ secrets.PASSWORD }}
source: ./
target: ./${{ env.DEPLOY_FOLDER }}/

- name: Install npm dependencies on the server
uses: appleboy/ssh-action@v0.1.10
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
script: |
cd ./${{ env.DEPLOY_FOLDER }}
npm install
- name: Deploy with PM2
uses: appleboy/ssh-action@v0.1.10
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
script: |
cd ./${{ env.DEPLOY_FOLDER }}
pm2 restart index.js
pm2 save --force
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:latest
FROM node:16
WORKDIR /app
COPY package*.json ./
RUN npm install
Expand Down

0 comments on commit 2e918d6

Please sign in to comment.