Skip to content

Commit

Permalink
fix(packer): Add missing RUNNER_ARCHITECTURE for amazn-linux2 (philip…
Browse files Browse the repository at this point in the history
…s-labs#1647)

* fix(packer): Add missing RUNNER_ARCHITECTURE for amazn-linux2

* Run ci on change in in templates of runners for packer images
  • Loading branch information
npalm authored Jan 19, 2022
1 parent 74cfa51 commit ec497a2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/packer-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
paths:
- "images/**"
- ".github/workflows/packer-build.yml"
- "module/runners/templates/**"

env:
AWS_REGION: eu-west-1
Expand Down
3 changes: 2 additions & 1 deletion images/linux-amzn2/github_agent.linux.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ build {
install_runner = templatefile("../../modules/runners/templates/install-runner.sh", {
ARM_PATCH = ""
S3_LOCATION_RUNNER_DISTRIBUTION = ""
RUNNER_ARCHITECTURE = "x64"
})
})
destination = "/tmp/install-runner.sh"
Expand All @@ -113,7 +114,7 @@ build {
]
inline = [
"sudo chmod +x /tmp/install-runner.sh",
"sudo RUNNER_TARBALL_URL=$RUNNER_TARBALL_URL /tmp/install-runner.sh"
"sudo RUNNER_ARCHITECTURE=x64 RUNNER_TARBALL_URL=$RUNNER_TARBALL_URL /tmp/install-runner.sh"
]
}

Expand Down

0 comments on commit ec497a2

Please sign in to comment.