From ec497a2576abb086e67f75e4358fd107e57212db Mon Sep 17 00:00:00 2001 From: Niek Palm Date: Wed, 19 Jan 2022 11:58:19 +0100 Subject: [PATCH] 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 --- .github/workflows/packer-build.yml | 1 + images/linux-amzn2/github_agent.linux.pkr.hcl | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/packer-build.yml b/.github/workflows/packer-build.yml index 3ccac79f6a..01e6aa497f 100644 --- a/.github/workflows/packer-build.yml +++ b/.github/workflows/packer-build.yml @@ -8,6 +8,7 @@ on: paths: - "images/**" - ".github/workflows/packer-build.yml" + - "module/runners/templates/**" env: AWS_REGION: eu-west-1 diff --git a/images/linux-amzn2/github_agent.linux.pkr.hcl b/images/linux-amzn2/github_agent.linux.pkr.hcl index a930814fa3..333a239342 100644 --- a/images/linux-amzn2/github_agent.linux.pkr.hcl +++ b/images/linux-amzn2/github_agent.linux.pkr.hcl @@ -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" @@ -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" ] }