Dev pipeline und build Skript
This commit is contained in:
20
.github/workflows/build-and-test.yml
vendored
20
.github/workflows/build-and-test.yml
vendored
@@ -1,20 +0,0 @@
|
||||
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
|
||||
37
.github/workflows/dev-pipeline.yml
vendored
37
.github/workflows/dev-pipeline.yml
vendored
@@ -1,27 +1,26 @@
|
||||
name: Dev Pipeline
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches: [main]
|
||||
push:
|
||||
branches: [ dev ]
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Deploy dev changes.
|
||||
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
|
||||
- uses: actions/checkout@v2
|
||||
- uses: appleboy/ssh-action@master
|
||||
with:
|
||||
host: ${{ secrets.DEV_HOST }}
|
||||
username: ${{ secrets.DEV_USERNAME }}
|
||||
password: ${{ secrets.DEV_PASSWORD }}
|
||||
port: 22
|
||||
script: |
|
||||
cd ~/online-energieausweis
|
||||
git reset --hard HEAD
|
||||
git clean -f -d
|
||||
git pull origin main
|
||||
git status
|
||||
bash build.sh
|
||||
27
.github/workflows/prod-pipeline.yml
vendored
27
.github/workflows/prod-pipeline.yml
vendored
@@ -1,27 +0,0 @@
|
||||
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
|
||||
Reference in New Issue
Block a user