This commit is contained in:
24
.gitea/workflows/deploy.yml
Normal file
24
.gitea/workflows/deploy.yml
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
name: Deploy to Production
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [master, main]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
deploy:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Deploy to server
|
||||||
|
uses: appleboy/ssh-action@v0.1.0
|
||||||
|
with:
|
||||||
|
host: ${{ secrets.HOST }}
|
||||||
|
username: root
|
||||||
|
key: ${{ secrets.SSH_KEY }}
|
||||||
|
script: |
|
||||||
|
cd /root/manoonoils-store
|
||||||
|
git pull origin master
|
||||||
|
npm run build
|
||||||
|
docker build -t manoonoils-store:latest .
|
||||||
|
docker stop manoonoils-store && docker rm manoonoils-store
|
||||||
|
docker run -d --name manoonoils-store -p 3000:3000 --env-file .env.local manoonoils-store:latest
|
||||||
|
docker network connect coolify manoonoils-store
|
||||||
1
manoonoils-store
Submodule
1
manoonoils-store
Submodule
Submodule manoonoils-store added at 0c70eb06a5
Reference in New Issue
Block a user