feat: Live-Dashboard auf gitea.slohmaier.com/pages/demo-epb/
Setup: - nginx-Vhost gitea.slohmaier.com hat jetzt location /pages/ fuer statische Files aus /var/www/pages/ - act_runner config.yaml mit -v /var/www/pages:/var/www/pages Volume-Mount, damit Jobs aus dem Container schreiben koennen - /var/www/pages/demo-epb/ writable fuer gitea-runner-User CI-Deploy: - validate.yml: bei Push auf main wird das Build ins /var/www/pages/demo-epb/ deployt - release.yml: bei Tag-Push deployt das gesamte Release-Bundle Live unter https://gitea.slohmaier.com/pages/demo-epb/
This commit is contained in:
@@ -165,6 +165,18 @@ jobs:
|
||||
|
||||
echo "Release verfuegbar unter ${GITHUB_SERVER_URL}/${OWNER}/${REPO}/releases/tag/${TAG}"
|
||||
|
||||
- name: Deploy zu gitea.slohmaier.com/pages/demo-epb/
|
||||
run: |
|
||||
DEPLOY=/var/www/pages/demo-epb
|
||||
if [ ! -d "$DEPLOY" ]; then
|
||||
echo "Mount $DEPLOY nicht da — Runner-Config pruefen. Skip."
|
||||
exit 0
|
||||
fi
|
||||
BUNDLE="release/demo-epb-${TAG}"
|
||||
rm -rf "$DEPLOY"/*
|
||||
cp -r "$BUNDLE"/. "$DEPLOY/"
|
||||
echo "https://gitea.slohmaier.com/pages/demo-epb/ updated to ${TAG}"
|
||||
|
||||
- name: Upload artifacts (Backup als CI-Artefakt)
|
||||
uses: actions/upload-artifact@v3
|
||||
if: always()
|
||||
|
||||
Reference in New Issue
Block a user