-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow large runners to be configured by an input #135
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Looks like we will currently need a new parameter for the |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,10 @@ name: Provider CI | |
on: | ||
workflow_call: | ||
inputs: | ||
large-runner: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please see the comment above regarding the parameter naming. |
||
required: false | ||
type: string | ||
default: "[e2-standard-8, linux]" | ||
upjet-based-provider: | ||
required: false | ||
type: boolean | ||
|
@@ -65,7 +69,7 @@ jobs: | |
run: | | ||
make schema-version-diff | ||
lint: | ||
runs-on: [e2-standard-8, linux] | ||
runs-on: ${{ fromJSON(inputs.large-runner) }} | ||
needs: detect-noop | ||
if: needs.detect-noop.outputs.noop != 'true' | ||
|
||
|
@@ -273,7 +277,7 @@ jobs: | |
run: make local-deploy | ||
|
||
publish-artifacts: | ||
runs-on: [e2-standard-8, linux] | ||
runs-on: ${{ fromJSON(inputs.large-runner) }} | ||
needs: detect-noop | ||
if: needs.detect-noop.outputs.noop != 'true' | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,10 @@ name: Provider Publish Service Artifacts | |
on: | ||
workflow_call: | ||
inputs: | ||
large-runner: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please see the comment above regarding the parameter naming. |
||
required: false | ||
type: string | ||
default: "[e2-standard-8, linux]" | ||
subpackages: | ||
description: 'Subpackages to be built individually (e.g. monolith config ec2)' | ||
default: 'monolith' | ||
|
@@ -38,7 +42,7 @@ env: | |
|
||
jobs: | ||
index: | ||
runs-on: [e2-standard-8, linux] | ||
runs-on: ${{ fromJSON(inputs.large-runner) }} | ||
outputs: | ||
indices: ${{ steps.calc.outputs.indices }} | ||
steps: | ||
|
@@ -52,7 +56,7 @@ jobs: | |
index: ${{ fromJSON(needs.index.outputs.indices) }} | ||
|
||
needs: index | ||
runs-on: [e2-standard-8, linux] | ||
runs-on: ${{ fromJSON(inputs.large-runner) }} | ||
steps: | ||
- name: Setup QEMU | ||
uses: docker/setup-qemu-action@27d0a4f181a40b142cce983c5393082c365d1480 # v1 | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about naming this parameter as:
The motivation is the supplied runner selector could be smaller or larger compared to a reference (standard) runner. So, it's better if we don't imply a size in the parameter name in my opinion (although the current use case is to have larger runners).