update server on main changes
This commit is contained in:
25
.github/workflows/ci.yml
vendored
25
.github/workflows/ci.yml
vendored
@@ -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
|
||||||
|
|||||||
17
.github/workflows/docker-build.yml
vendored
17
.github/workflows/docker-build.yml
vendored
@@ -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
|
||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user