update server on main changes
Some checks failed
CI / lint (push) Successful in 10s
CI / build (push) Successful in 9s
Build Docker Image / build-and-push-docker (push) Has been cancelled

This commit is contained in:
2025-08-28 15:47:45 +02:00
parent 194b0b58ed
commit 63f906bb02
3 changed files with 30 additions and 14 deletions

View File

@@ -7,17 +7,6 @@ on:
branches: [main] branches: [main]
jobs: jobs:
build:
runs-on: ubuntu-latest
container:
image: oven/bun
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: bun install
- name: Build
run: bun run build
lint: lint:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
@@ -29,4 +18,16 @@ jobs:
- name: Biome Check - name: Biome Check
run: biome check run: biome check
- name: Biome Lint - name: Biome Lint
run: biome lint run: biome lint
build:
runs-on: ubuntu-latest
needs: lint
container:
image: oven/bun
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: bun install
- name: Build
run: bun run build

View File

@@ -9,6 +9,7 @@ on:
jobs: jobs:
build-and-push-docker: build-and-push-docker:
needs: [build]
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
@@ -21,4 +22,18 @@ jobs:
- name: Build Docker image - name: Build Docker image
run: docker build -t git.rivercry.com/wg/monitor-im-flur . run: docker build -t git.rivercry.com/wg/monitor-im-flur .
- name: Push Docker image - name: Push Docker image
run: docker push git.rivercry.com/wg/monitor-im-flur run: docker push git.rivercry.com/wg/monitor-im-flur
- name: Deploy via SSH
uses: appleboy/ssh-action@v0.1.10
with:
host: rivercry.com
port: 20022
username: bot
key: ${{ secrets.SSH_PRIVATE_KEY }}
script: |
cd monitor-im-flur
docker pull git.rivercry.com/wg/monitor-im-flur:latest
docker stop monitor-im-flur || true
docker rm monitor-im-flur || true
docker run -d --name monitor-im-flur git.rivercry.com/wg/monitor-im-flur:latest

View File

@@ -1,6 +1,6 @@
services: services:
monitor-im-flur: monitor-im-flur:
build: . image: git.rivercry.com/wg/monitor-im-flur:latest
ports: ports:
- "9123:5173" - "9123:5173"
restart: unless-stopped restart: unless-stopped