♻️ refactor(ci): rendi runner configurabile in docker-release

- Aggiunto input 'runner' con default 'catthehacker-latest'
- Permette ai consumer di specificare un runner diverso
- Aggiornato esempio microservizio con runner esplicito
This commit is contained in:
LucaZanni
2026-03-26 07:17:44 +01:00
parent 02f61125ef
commit 218ca83525
2 changed files with 6 additions and 1 deletions
+4 -1
View File
@@ -6,10 +6,13 @@ on:
node-version: node-version:
type: string type: string
default: '22.17' default: '22.17'
runner:
type: string
default: 'catthehacker-latest'
jobs: jobs:
docker-release: docker-release:
runs-on: catthehacker-latest runs-on: ${{ inputs.runner }}
steps: steps:
- name: Checkout - name: Checkout
uses: https://gitea.com/actions/checkout@v4 uses: https://gitea.com/actions/checkout@v4
+2
View File
@@ -15,6 +15,8 @@ jobs:
docker-release: docker-release:
uses: https://gitea.com/Punga78/shared-actions/.gitea/workflows/docker-release.yml@main uses: https://gitea.com/Punga78/shared-actions/.gitea/workflows/docker-release.yml@main
secrets: inherit secrets: inherit
with:
runner: catthehacker-latest # runner con Docker pre-installato
auto-release: auto-release:
uses: https://gitea.com/Punga78/shared-actions/.gitea/workflows/auto-release.yml@main uses: https://gitea.com/Punga78/shared-actions/.gitea/workflows/auto-release.yml@main