Updates und Verbesserungen #505
6
.github/workflows/dev-pipeline.yml
vendored
6
.github/workflows/dev-pipeline.yml
vendored
@@ -1,10 +1,10 @@
|
||||
name: Dev Pipeline
|
||||
name: Development Pipeline
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches: [main]
|
||||
branches: [dev]
|
||||
push:
|
||||
branches: [main]
|
||||
branches: [dev]
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
|
||||
33
.github/workflows/prod-pipeline.yml
vendored
Normal file
33
.github/workflows/prod-pipeline.yml
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
name: Production Pipeline
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches: [main]
|
||||
push:
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Install Bun
|
||||
run: |
|
||||
curl -fsSL https://bun.sh/install | bash
|
||||
|
||||
- uses: appleboy/ssh-action@master
|
||||
with:
|
||||
host: ${{ secrets.PROD_HOST }}
|
||||
username: ${{ secrets.PROD_USERNAME }}
|
||||
password: ${{ secrets.PROD_PASSWORD }}
|
||||
port: 22
|
||||
script: |
|
||||
export PATH=$HOME/.bun/bin:$PATH
|
||||
export PATH=$HOME/.nvm/versions/node/v22.14.0/bin:$PATH
|
||||
echo $PATH
|
||||
cd ~/online-energieausweis
|
||||
git reset --hard origin/main
|
||||
git clean -f -d
|
||||
git pull origin main
|
||||
git status
|
||||
make prod
|
||||
Reference in New Issue
Block a user