Skip to content

Access limit feature #38

Access limit feature

Access limit feature #38

Workflow file for this run

name: CI CD - Whim
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
name: CI - Whim Lint & Build
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Bun
uses: oven-sh/setup-bun@v2
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Build
run: bun run build
deploy:
name: CD - Whim Deploy
runs-on: ubuntu-22.04
needs: build
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
steps:
- name: Setup SSH key
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.VPS_KEY }}
- name: SSH and Deploy
run: |
ssh -o StrictHostKeyChecking=no ${{ secrets.VPS_USER }}@${{ secrets.VPS_HOST }} << 'EOF'
cd whim
git pull origin main
docker compose up --build -d
docker compose restart caddy
EOF