Auto-deploy to VPS on push to main via host runner. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
5b1eb9eec4
commit
fb7364056b
19
.gitea/workflows/deploy.yml
Normal file
19
.gitea/workflows/deploy.yml
Normal file
@ -0,0 +1,19 @@
|
||||
name: Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: host
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Deploy container
|
||||
run: |
|
||||
rsync -a --delete ${{ gitea.workspace }}/ /opt/redunits/www/
|
||||
cd /opt/redunits/www
|
||||
docker compose up -d --build
|
||||
Loading…
x
Reference in New Issue
Block a user