Skip to content
This repository has been archived by the owner on Oct 10, 2024. It is now read-only.

Commit

Permalink
fix: deploy image to caprover
Browse files Browse the repository at this point in the history
  • Loading branch information
eddiejaoude authored Jun 11, 2024
1 parent cb5eed9 commit 808f049
Showing 1 changed file with 6 additions and 26 deletions.
32 changes: 6 additions & 26 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build & Deploy
name: Deploy to Caprover

on:
registry_package:
Expand All @@ -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

0 comments on commit 808f049

Please sign in to comment.