Skip to content

Commit

Permalink
CI/CD fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Andcool-Systems committed Nov 18, 2024
1 parent 78cd7fb commit 816f8d1
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 466 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@ jobs:
sshpass -e ssh -o StrictHostKeyChecking=no root@${{ secrets.SERVER_IP }} << 'EOF'
cd /home/andcoolsystems/pplbandage_site
openssl aes-256-cbc -d -in env.enc -out .env -k ${{ secrets.ENCRYPTION_KEY }}
npm i
npm run build
docker compose build
docker compose up -d
EOF
6 changes: 2 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@ FROM node:latest

WORKDIR /app

COPY package*.json ./
RUN npm i

COPY . .
RUN npm run build

RUN npm i

CMD ["npm", "run", "start"]
Loading

0 comments on commit 816f8d1

Please sign in to comment.