fix(deploy): App-Home auf Pool statt read-only /opt (TrueNAS Goldeye)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -142,9 +142,10 @@ jobs:
|
||||
name: Deploy auf TrueNAS (Custom App)
|
||||
# Laeuft auf dem vorhandenen containerisierten Gitea-Runner (Label ubuntu-latest).
|
||||
# Der Runner hat KEINEN Host-Dateisystem-/midclt-Zugriff, daher: per SSH zum NAS-Host
|
||||
# verbinden, die Deploy-Dateien nach /opt/gerbilmanager kopieren und dort
|
||||
# verbinden, die Deploy-Dateien in das App-Home auf dem Pool kopieren und dort
|
||||
# truenas-deploy.sh ausfuehren (legt die TrueNAS "Custom App" an bzw. rollt sie neu
|
||||
# aus via `midclt` — die App bleibt unter Apps sichtbar).
|
||||
# Hinweis: / (inkl. /opt) ist auf TrueNAS Goldeye read-only -> App-Home auf dem Pool.
|
||||
#
|
||||
# Benoetigte Repo-Secrets (Gitea -> Einstellungen -> Actions -> Secrets):
|
||||
# NAS_SSH_HOST z. B. 192.168.2.115 (Host-LAN-IP der NAS)
|
||||
@@ -152,6 +153,8 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
needs: [build-and-push]
|
||||
if: github.ref == 'refs/heads/main' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch')
|
||||
env:
|
||||
APP_HOME: /mnt/JailStorage/DockerVolumes/gerbilmanager
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
@@ -167,16 +170,16 @@ jobs:
|
||||
run: |
|
||||
NAS="root@${{ secrets.NAS_SSH_HOST }}"
|
||||
SSH="ssh -i ~/.ssh/id_deploy -o StrictHostKeyChecking=accept-new"
|
||||
$SSH "$NAS" 'mkdir -p /opt/gerbilmanager/deploy/truenas/scripts'
|
||||
$SSH "$NAS" "mkdir -p $APP_HOME/deploy/truenas/scripts"
|
||||
rsync -az -e "$SSH" \
|
||||
deploy/truenas/custom-app.compose.yaml \
|
||||
"$NAS":/opt/gerbilmanager/deploy/truenas/
|
||||
"$NAS":"$APP_HOME"/deploy/truenas/
|
||||
rsync -az -e "$SSH" \
|
||||
deploy/truenas/scripts/ \
|
||||
"$NAS":/opt/gerbilmanager/deploy/truenas/scripts/
|
||||
"$NAS":"$APP_HOME"/deploy/truenas/scripts/
|
||||
|
||||
- name: Custom App neu ausrollen (midclt create/redeploy + Health-Check)
|
||||
run: |
|
||||
NAS="root@${{ secrets.NAS_SSH_HOST }}"
|
||||
ssh -i ~/.ssh/id_deploy -o StrictHostKeyChecking=accept-new "$NAS" \
|
||||
"sh /opt/gerbilmanager/deploy/truenas/scripts/truenas-deploy.sh"
|
||||
"sh $APP_HOME/deploy/truenas/scripts/truenas-deploy.sh"
|
||||
|
||||
Reference in New Issue
Block a user