From 9bcea09be34089a7e0d1ec14a63d1a1d63074e84 Mon Sep 17 00:00:00 2001 From: eric oliver Date: Mon, 18 Dec 2023 10:00:33 -0800 Subject: [PATCH] Explicitly set required plugin versions. Packer update no longer allows bundled plugins. --- .github/workflows/packer-ghar.yml | 1 + packer/github-action-runner/variables.pkr.hcl | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/.github/workflows/packer-ghar.yml b/.github/workflows/packer-ghar.yml index b17b7cf74..a4016b334 100644 --- a/.github/workflows/packer-ghar.yml +++ b/.github/workflows/packer-ghar.yml @@ -1,5 +1,6 @@ name: Build GHAR on: + pull_request: schedule: - cron: '30 5 1,15 * *' workflow_dispatch: diff --git a/packer/github-action-runner/variables.pkr.hcl b/packer/github-action-runner/variables.pkr.hcl index c74667534..12ef17e1d 100644 --- a/packer/github-action-runner/variables.pkr.hcl +++ b/packer/github-action-runner/variables.pkr.hcl @@ -1,3 +1,12 @@ +packer { + required_plugins { + amazon = { + version = ">= 1.1.0" + source = "github.com/hashicorp/amazon" + } + } +} + variable "skip_ami" { type = bool default = true