Skip to content

Commit a84a31d

Browse files
Merge pull request #339 from Staffbase/runs_on_variable
add the runs-on property to the gitops template
2 parents 6644cfc + f9d2898 commit a84a31d

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.github/workflows/template_gitops.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@ on:
6060
upwind-client-id:
6161
required: false
6262
type: string
63+
runs-on:
64+
required: false
65+
type: string
66+
default: "ubuntu-24.04"
6367
upwind-organization-id:
6468
required: false
6569
type: string
@@ -91,8 +95,7 @@ on:
9195
jobs:
9296
gitops:
9397
name: GitOps
94-
runs-on: ubuntu-24.04
95-
98+
runs-on: ${{ inputs.runs-on }}
9699
if: github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/')
97100

98101
env:

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,8 @@ jobs:
250250
# optional: files which should be updated for prod
251251
gitops-prod: |-
252252
your files
253+
# optional: defines the github runner for the gitops step
254+
runs-on: ubuntu-latest
253255
# optional: Upwind.io client ID
254256
upwind-client-id: ${{ vars.UPWIND_CLIENT_ID }}
255257
# optional: Upwind.io organization ID

0 commit comments

Comments
 (0)