-
Notifications
You must be signed in to change notification settings - Fork 704
feat: Introduce Amazon Linux 2023 ARM image #4780
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
base: main
Are you sure you want to change the base?
Changes from all commits
3d30fc0
aeaca0c
dac5853
6e595ef
defeda2
ebbff38
187deb1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,7 +3,6 @@ | |
| ## install the runner | ||
|
|
||
| s3_location=${S3_LOCATION_RUNNER_DISTRIBUTION} | ||
| architecture=${RUNNER_ARCHITECTURE} | ||
|
Member
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. What is the reason of removing this variable? Is it not used?
Contributor
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. Seems like it's not used, it was introduced in #1624 which added a condition: But that was eventually removed by #3437 because |
||
|
|
||
| if [ -z "$RUNNER_TARBALL_URL" ] && [ -z "$s3_location" ]; then | ||
| echo "Neither RUNNER_TARBALL_URL or s3_location are set" | ||
|
|
||
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.
The ternary expression could be clearer. Consider extracting the architecture mapping to a local variable for better readability, e.g.,
locals { ami_architecture = var.architecture == \"x64\" ? \"x86_64\" : var.architecture }.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.
Good recommendation, but not necessary,
local.ami_architectureandvar.architecturecould be confusing, if you decide to implement this suggestion I would use a clearer name for the local variable such asami_name_architectureto make it clear that is the only place wherex86_64is being used.