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()
|
||||
|
||||
@@ -144,3 +144,25 @@ jobs:
|
||||
with:
|
||||
name: cppcheck-report
|
||||
path: build/cppcheck-report.xml
|
||||
|
||||
- name: Deploy zu gitea.slohmaier.com/pages/demo-epb/
|
||||
if: success() && github.ref == 'refs/heads/main'
|
||||
run: |
|
||||
DEPLOY=/var/www/pages/demo-epb
|
||||
if [ ! -d "$DEPLOY" ]; then
|
||||
echo "Mount $DEPLOY nicht da — Runner-Config pruefen. Skip."
|
||||
exit 0
|
||||
fi
|
||||
mkdir -p "$DEPLOY"/{docs,coverage,traceability,diagrams,api-doc,reports,src,misra/records}
|
||||
cp build/index.html "$DEPLOY/index.html"
|
||||
cp -r docs/plaene docs/safety docs/manuals docs/reviews docs/non-conformities "$DEPLOY/docs/"
|
||||
cp -r build/coverage-html/. "$DEPLOY/coverage/" 2>/dev/null || true
|
||||
cp -r docs/traceability/. "$DEPLOY/traceability/"
|
||||
cp -r docs/diagrams/. "$DEPLOY/diagrams/"
|
||||
cp -r build/api-doc/html/. "$DEPLOY/api-doc/" 2>/dev/null || true
|
||||
cp build/test-report.html build/test-report.md "$DEPLOY/reports/" 2>/dev/null || true
|
||||
cp build/cppcheck-report.xml "$DEPLOY/reports/" 2>/dev/null || true
|
||||
cp src/*.c src/*.h "$DEPLOY/src/"
|
||||
cp -r src/stubs "$DEPLOY/src/" 2>/dev/null || true
|
||||
cp -r misra/records/. "$DEPLOY/misra/records/" 2>/dev/null || true
|
||||
echo "https://gitea.slohmaier.com/pages/demo-epb/ updated"
|
||||
|
||||
Reference in New Issue
Block a user