Add deployment workflow for production environment
All checks were successful
Deploy to Production / deploy (push) Successful in 5s
All checks were successful
Deploy to Production / deploy (push) Successful in 5s
This commit is contained in:
parent
94e699549d
commit
ac9d24dac1
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 VDS
|
||||
uses: appleboy/ssh-action@v1.0.3
|
||||
with:
|
||||
host: ${{ secrets.VDS_SERVER }}
|
||||
username: ${{ secrets.VDS_USER }}
|
||||
key: ${{ secrets.VDS_SSH_KEY }}
|
||||
port: ${{ secrets.VDS_SSH_PORT || 22 }}
|
||||
script: |
|
||||
cd ${{ secrets.PROJECT_DIRECTORY }}
|
||||
git fetch origin
|
||||
git pull origin master
|
||||
docker compose up -d --build
|
||||
Loading…
x
Reference in New Issue
Block a user