docker files fixes from liaqat
This commit is contained in:
35
.github/workflows/caprover.yml
vendored
Normal file
35
.github/workflows/caprover.yml
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
name: Build & Deploy
|
||||
on:
|
||||
push:
|
||||
branches: [ "main" ]
|
||||
pull_request:
|
||||
branches: [ "main" ]
|
||||
jobs:
|
||||
build-and-deploy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out repository
|
||||
uses: actions/checkout@v4
|
||||
- name: Build and test your app (customize as needed)
|
||||
run: |
|
||||
# Add your build and test commands here
|
||||
# For example:
|
||||
# npm install
|
||||
# npm run build
|
||||
# npm run test
|
||||
- name: Create deploy.tar
|
||||
uses: a7ul/tar-action@v1.1.0
|
||||
with:
|
||||
command: c
|
||||
cwd: "./"
|
||||
files: |
|
||||
scripts/build_and_run.sh
|
||||
|
||||
captain-definition
|
||||
outPath: deploy.tar
|
||||
- name: Deploy App to CapRover
|
||||
uses: caprover/deploy-from-github@v1.0.1
|
||||
with:
|
||||
server: '${{ secrets.CAPROVER_SERVER }}'
|
||||
app: '${{ secrets.APP_NAME }}'
|
||||
token: '${{ secrets.MANAGING_APPS }}'
|
||||
Reference in New Issue
Block a user