Skip to content

Commit 4e88fde

Browse files
added runner parameter so it can be used with self hosted runners
1 parent 07f85be commit 4e88fde

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/deploy.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010
on:
1111
workflow_call:
1212
inputs:
13+
runner:
14+
required: false
15+
type: string
16+
default: ubuntu-latest
1317
environment:
1418
required: true
1519
type: string
@@ -56,7 +60,7 @@ on:
5660

5761
jobs:
5862
deploy:
59-
runs-on: ubuntu-latest
63+
runs-on: ${{ inputs.runner }}
6064
outputs:
6165
cd_path: ${{ steps.cdpath.outputs.cd_path }}
6266
steps:

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ This reusable GitHub Actions workflow deploys a Kubernetes application by render
2323
| `image_base_names` || array | Multiple image base names to patch |
2424
| `kustomize_version` || string | Kustomize version (default: `5.0.1`) |
2525
| `skip_status_check` || string | If `true`, skips waiting for ArgoCD sync to complete. Only confirms sync was accepted. |
26+
| `runner` || string | Runner label to execute the workflow on (e.g. `ubuntu-latest`, `self-hosted`) |
27+
2628

2729
---
2830

0 commit comments

Comments
 (0)