add: improved workflow for caprover
This commit is contained in:
@@ -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 }}
|
||||
Reference in New Issue
Block a user