add: improved workflow for caprover

This commit is contained in:
2026-03-21 10:44:21 -03:00
parent 1b14051640
commit 9a723b069d
7 changed files with 91 additions and 15 deletions
+28
View File
@@ -0,0 +1,28 @@
name: Deploy to CapRover
on:
push:
branches: [ main ]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Pack it up
run: |
tar -cvf deploy.tar \
captain-definition \
composer.json \
composer.lock \
app/ \
docker/wordpress/Dockerfile \
docker/wordpress/scripts/
- name: Deploy to CapRover
uses: caprover/deploy-from-github@v1.0.1
with:
server: ${{ vars.CAPROVER_SERVER }}
app: ${{ vars.APP_NAME }}
token: ${{ secrets.CAPROVER_APP_TOKEN }}