mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-12-05 09:18:53 +00:00
refactor(ci): extract app-discovery output logic into script
Inline shell duplicated across four deploy workflows. Single source now in scripts/github/output_apps.sh.
This commit is contained in:
5 files changed
+19
-28
No files matched your search
@@ -72,13 +72,7 @@ jobs:
|
||||
shell: bash
|
||||
env:
|
||||
WHITELIST: ${{ inputs.whitelist }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
apps="$(./scripts/meta/resolve/apps.sh)"
|
||||
[[ -n "$apps" ]] || apps='[]'
|
||||
echo "apps=$apps" >> "$GITHUB_OUTPUT"
|
||||
echo "apps_json=$apps" >> "$GITHUB_OUTPUT"
|
||||
echo "apps_json=$apps"
|
||||
run: ./scripts/github/output_apps.sh
|
||||
|
||||
deploy:
|
||||
name: 🚀 Deploy ${{ needs.discover.outputs.test_deploy_type }} app (${{ matrix.apps }})
|
||||
|
||||
@@ -60,13 +60,7 @@ jobs:
|
||||
shell: bash
|
||||
env:
|
||||
WHITELIST: ${{ inputs.whitelist }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
apps="$(./scripts/meta/resolve/apps.sh)"
|
||||
[[ -n "$apps" ]] || apps='[]'
|
||||
echo "apps=$apps" >> "$GITHUB_OUTPUT"
|
||||
echo "apps_json=$apps" >> "$GITHUB_OUTPUT"
|
||||
echo "apps_json=$apps"
|
||||
run: ./scripts/github/output_apps.sh
|
||||
|
||||
server:
|
||||
name: 🌐 Deploy ${{ matrix.apps }}
|
||||
|
||||
@@ -56,13 +56,7 @@ jobs:
|
||||
shell: bash
|
||||
env:
|
||||
WHITELIST: ${{ inputs.whitelist }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
apps="$(./scripts/meta/resolve/apps.sh)"
|
||||
[[ -n "$apps" ]] || apps='[]'
|
||||
echo "apps=$apps" >> "$GITHUB_OUTPUT"
|
||||
echo "apps_json=$apps" >> "$GITHUB_OUTPUT"
|
||||
echo "apps_json=$apps"
|
||||
run: ./scripts/github/output_apps.sh
|
||||
|
||||
universal:
|
||||
name: ✨ Deploy ${{ matrix.apps }}
|
||||
|
||||
@@ -56,13 +56,7 @@ jobs:
|
||||
shell: bash
|
||||
env:
|
||||
WHITELIST: ${{ inputs.whitelist }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
apps="$(./scripts/meta/resolve/apps.sh)"
|
||||
[[ -n "$apps" ]] || apps='[]'
|
||||
echo "apps=$apps" >> "$GITHUB_OUTPUT"
|
||||
echo "apps_json=$apps" >> "$GITHUB_OUTPUT"
|
||||
echo "apps_json=$apps"
|
||||
run: ./scripts/github/output_apps.sh
|
||||
|
||||
workstation:
|
||||
name: 🖥️ Deploy ${{ matrix.apps }}
|
||||
|
||||
Reference in new issue
Block a user