ci: simplify deploy workflow, use native git pull on host runner
Some checks failed
Deploy / deploy (push) Failing after 1s
Some checks failed
Deploy / deploy (push) Failing after 1s
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
fb7364056b
commit
64942c7b32
@ -9,11 +9,12 @@ jobs:
|
|||||||
deploy:
|
deploy:
|
||||||
runs-on: host
|
runs-on: host
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Pull latest code
|
||||||
uses: actions/checkout@v3
|
run: |
|
||||||
|
cd /opt/redunits/www
|
||||||
- name: Deploy container
|
git pull origin main
|
||||||
|
|
||||||
|
- name: Rebuild and restart container
|
||||||
run: |
|
run: |
|
||||||
rsync -a --delete ${{ gitea.workspace }}/ /opt/redunits/www/
|
|
||||||
cd /opt/redunits/www
|
cd /opt/redunits/www
|
||||||
docker compose up -d --build
|
docker compose up -d --build
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user