Skip to content
This repository was archived by the owner on Jan 16, 2025. It is now read-only.

Commit ec497a2

Browse files
authored
fix(packer): Add missing RUNNER_ARCHITECTURE for amazn-linux2 (#1647)
* fix(packer): Add missing RUNNER_ARCHITECTURE for amazn-linux2 * Run ci on change in in templates of runners for packer images
1 parent 74cfa51 commit ec497a2

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Diff for: .github/workflows/packer-build.yml

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
paths:
99
- "images/**"
1010
- ".github/workflows/packer-build.yml"
11+
- "module/runners/templates/**"
1112

1213
env:
1314
AWS_REGION: eu-west-1

Diff for: images/linux-amzn2/github_agent.linux.pkr.hcl

+2-1
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ build {
102102
install_runner = templatefile("../../modules/runners/templates/install-runner.sh", {
103103
ARM_PATCH = ""
104104
S3_LOCATION_RUNNER_DISTRIBUTION = ""
105+
RUNNER_ARCHITECTURE = "x64"
105106
})
106107
})
107108
destination = "/tmp/install-runner.sh"
@@ -113,7 +114,7 @@ build {
113114
]
114115
inline = [
115116
"sudo chmod +x /tmp/install-runner.sh",
116-
"sudo RUNNER_TARBALL_URL=$RUNNER_TARBALL_URL /tmp/install-runner.sh"
117+
"sudo RUNNER_ARCHITECTURE=x64 RUNNER_TARBALL_URL=$RUNNER_TARBALL_URL /tmp/install-runner.sh"
117118
]
118119
}
119120

0 commit comments

Comments
 (0)