Skip to content

Commit

Permalink
[OGE-8286] Support different runners for our reusable workflows (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
goncalo-rodrigues authored Oct 31, 2024
1 parent 154838a commit 5603d80
Show file tree
Hide file tree
Showing 7 changed files with 42 additions and 7 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/docker-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,15 @@ on:
default: "."
required: false
type: string
runsOn:
description: "github actions runner to use for this action"
default: "ubuntu-latest"
required: false
type: string

jobs:
docker-scan:
runs-on: ubuntu-latest
runs-on: ${{ inputs.runsOn }}
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ on:
default: true
required: false
type: boolean
runsOn:
description: "github actions runner to use for this action"
default: "ubuntu-latest"
required: false
type: string
secrets:
REGISTRY_USERNAME:
description: "docker registry username"
Expand All @@ -66,7 +71,7 @@ on:

jobs:
docker:
runs-on: ubuntu-latest
runs-on: ${{ inputs.runsOn }}
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/gcp-helm-charts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,19 @@ on:
description: "gcp directory where the packaged chart will be uploaded"
required: true
type: string
runsOn:
description: "github actions runner to use for this action"
default: "ubuntu-latest"
required: false
type: string
secrets:
GCP_CREDENTIALS:
description: "gcp credentials"
required: true

jobs:
gcp-helm-charts:
runs-on: ubuntu-latest
runs-on: ${{ inputs.runsOn }}
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/go-integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ on:
description: "build artifact to download before running tests"
required: false
type: string
runsOn:
description: "github actions runner to use for this action"
default: "ubuntu-latest"
required: false
type: string
secrets:
REGISTRY_USERNAME:
description: "docker registry username"
Expand All @@ -47,7 +52,7 @@ on:

jobs:
integration-test:
runs-on: test-large-runner
runs-on: ${{ inputs.runsOn }}
steps:
- name: Check out
if: ${{ ! inputs.skip }}
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/go-unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,19 @@ on:
default: "./artifacts/coverage.txt"
required: false
type: string
runsOn:
description: "github actions runner to use for this action"
default: "ubuntu-latest"
required: false
type: string
secrets:
CODECOV_TOKEN:
description: "codecov report upload token"
required: false

jobs:
unit-test:
runs-on: ubuntu-latest
runs-on: ${{ inputs.runsOn }}
steps:
- name: Check out
uses: actions/checkout@v4
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,15 @@ on:
description: "helm Chart.yaml path e.g. charts/yourapp/Chart.yaml"
required: true
type: string
runsOn:
description: "github actions runner to use for this action"
default: "ubuntu-latest"
required: false
type: string

jobs:
git-tag:
runs-on: ubuntu-latest
runs-on: ${{ inputs.runsOn }}
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/wait-for-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,15 @@ on:
required: false
default: ".version"
type: string
runsOn:
description: "github actions runner to use for this action"
default: "ubuntu-latest"
required: false
type: string

jobs:
wait-for-deploy:
runs-on: ubuntu-latest
runs-on: ${{ inputs.runsOn }}
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down

0 comments on commit 5603d80

Please sign in to comment.