Datenbank Umstellung

This commit is contained in:
Moritz Utcke
2023-12-09 10:40:39 +05:30
parent 2a995a1e8a
commit 9a6f5218d0
18 changed files with 242 additions and 106 deletions

20
.github/workflows/build-and-test.yml vendored Normal file
View File

@@ -0,0 +1,20 @@
name: Build and Test
on:
push:
branches: [ dev ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Build the application
uses: actions/checkout@v3
- uses: oven-sh/setup-bun@v1
with:
bun-version: "latest"
- run: bun install
- run: bun run build
- run: bun run test:unit
- run: bun run test:e2e

View File

@@ -1,15 +1,15 @@
name: Node.js CD
name: Dev Pipeline
on:
push:
branches: [ main ]
branches: [ dev ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Deploy using ssh
- name: Deploy dev changes.
uses: appleboy/ssh-action@master
with:
host: "212.227.155.91"

27
.github/workflows/prod-pipeline.yml vendored Normal file
View File

@@ -0,0 +1,27 @@
name: Production Deployment
on:
release:
types: [ created ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Deploy to production.
uses: appleboy/ssh-action@master
with:
host: "212.227.155.91"
username: "root"
password: "!2Zc727cI1"
port: 22
script: |
cd ~/apps/online-energieausweis
git reset --hard HEAD
git clean -f -d
git pull origin main
git status
npm install -g bun
bun install
bash build.sh