feat(truenas-deploy): default remote path to /mnt/jupiter/apps/<owner>/<repo>
Update README Actions Table / update-readme (push) Successful in 9s

This commit is contained in:
root
2026-10-13 11:35:48 -07:00
parent 393301c0b6
commit 773f838272
2 changed files with 31 additions and 23 deletions
+13 -5
View File
@@ -5,7 +5,7 @@ inputs:
description: 'Private SSH key for authenticating to TrueNAS'
required: true
app_name:
description: 'Application directory name under /mnt/jupiter/apps/<app_name> (defaults to repository name)'
description: 'Application subpath under /mnt/jupiter/apps/<owner>/<repo> (defaults to <owner>/<repo>)'
required: false
default: ''
compose_file:
@@ -37,13 +37,21 @@ runs:
INPUT_HOST: ${{ inputs.host }}
INPUT_USER: ${{ inputs.user }}
INPUT_ENV_CONTENT: ${{ inputs.env_file_content }}
REPO_NAME: ${{ github.event.repository.name }}
REPO_FULL_NAME: ${{ github.repository }}
REPO_OWNER: ${{ github.repository_owner }}
run: |
set -euo pipefail
APP_DIR_NAME="${INPUT_APP_NAME:-$REPO_NAME}"
if [ -z "$APP_DIR_NAME" ]; then
APP_DIR_NAME=$(basename "$GITHUB_REPOSITORY")
FULL_REPO="${REPO_FULL_NAME:-$GITHUB_REPOSITORY}"
OWNER="${REPO_OWNER:-$(dirname "$FULL_REPO")}"
if [ -n "$INPUT_APP_NAME" ]; then
case "$INPUT_APP_NAME" in
*/*) APP_DIR_NAME="$INPUT_APP_NAME" ;;
*) APP_DIR_NAME="${OWNER}/${INPUT_APP_NAME}" ;;
esac
else
APP_DIR_NAME="$FULL_REPO"
fi
COMPOSE_FILE="$INPUT_COMPOSE_FILE"