This repository has been archived by the owner on Oct 10, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 134
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cb5eed9
commit 808f049
Showing
1 changed file
with
6 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Build & Deploy | ||
name: Deploy to Caprover | ||
|
||
on: | ||
registry_package: | ||
|
@@ -13,30 +13,10 @@ jobs: | |
node-version: [18.x] | ||
|
||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v4 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v3 | ||
- name: Deploy Image to CapRrover | ||
uses: caprover/[email protected] | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: "npm" | ||
- run: npm ci | ||
- run: npm run build --if-present | ||
- run: npm run test --if-present | ||
|
||
- uses: a7ul/[email protected] | ||
with: | ||
command: c | ||
cwd: "./" | ||
files: | | ||
backend/ | ||
frontend/dist/ | ||
captain-definition | ||
outPath: deploy.tar | ||
|
||
- name: Deploy App to CapRover | ||
uses: caprover/[email protected] | ||
with: | ||
server: '${{ secrets.CAPROVER_SERVER }}' | ||
server: "${{ secrets.CAPROVER_SERVER }}" | ||
app: eddie-bot | ||
token: '${{ secrets.CAPROVER_TOKEN }}' | ||
token: "${{ secrets.CAPROVER_TOKEN }}" | ||
image: ghcr.io/eddiehubcommunity/eddiebot:latest |