Fix deploy workflow for self-hosted runner environment
Some checks failed
Deploy to Production / deploy (push) Failing after 1s
Some checks failed
Deploy to Production / deploy (push) Failing after 1s
This commit is contained in:
parent
8acbe996b8
commit
41843817a8
1 changed files with 13 additions and 4 deletions
|
|
@ -8,6 +8,8 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
runs-on: self-hosted
|
runs-on: self-hosted
|
||||||
|
env:
|
||||||
|
PATH: /home/avameo/.local/node/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
||||||
steps:
|
steps:
|
||||||
- name: Code aktualisieren
|
- name: Code aktualisieren
|
||||||
run: |
|
run: |
|
||||||
|
|
@ -15,11 +17,18 @@ jobs:
|
||||||
git -C /home/avameo/skillguard reset --hard FETCH_HEAD
|
git -C /home/avameo/skillguard reset --hard FETCH_HEAD
|
||||||
|
|
||||||
- name: Dependencies installieren
|
- name: Dependencies installieren
|
||||||
run: npm ci --prefix /home/avameo/skillguard
|
run: |
|
||||||
|
corepack enable --install-directory /home/avameo/.local/node/bin
|
||||||
|
corepack prepare pnpm@9.12.2 --activate
|
||||||
|
pnpm --dir /home/avameo/skillguard install --frozen-lockfile
|
||||||
|
|
||||||
- name: Build ausführen
|
- name: Build ausführen
|
||||||
run: npm run build --prefix /home/avameo/skillguard
|
run: pnpm --dir /home/avameo/skillguard run build
|
||||||
|
|
||||||
- name: Service neu starten
|
- name: Service neu starten
|
||||||
run: systemctl --user restart skillguard
|
run: |
|
||||||
# Trigger workflow
|
if systemctl --user list-unit-files | grep -q '^skillguard\.service'; then
|
||||||
|
systemctl --user restart skillguard
|
||||||
|
else
|
||||||
|
echo "skillguard.service nicht vorhanden - Restart uebersprungen"
|
||||||
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue