Skip to content

Commit b9e8113

Browse files
delgado3dthebengeu
authored andcommitted
fix: install packer plugins
1 parent af473f8 commit b9e8113

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

.github/workflows/ami-release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ jobs:
8888
8989
- name: Build AMI
9090
run: |
91+
packer init amazon-arm64.pkr.hcl
9192
GIT_SHA=${{github.sha}}
9293
packer build -var "git-head-version=${GIT_SHA}" -var "packer-execution-id=${GITHUB_RUN_ID}" -var-file="development-arm.vars.pkr.hcl" -var-file="common.vars.pkr.hcl" -var "ansible_arguments=" amazon-arm64.pkr.hcl
9394

.github/workflows/testinfra.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ jobs:
123123
# https://github.com/hashicorp/packer/issues/4899
124124
- name: Build AMI
125125
run: |
126+
packer init amazon-arm64.pkr.hcl
126127
GIT_SHA=${{github.sha}}
127128
packer build -var "git-head-version=${GIT_SHA}" -var "packer-execution-id=${GITHUB_RUN_ID}" -var-file="development-arm.vars.pkr.hcl" -var-file="common.vars.pkr.hcl" -var "ansible_arguments=" -var "postgres-version=ci-ami-test" -var "region=ap-southeast-1" -var 'ami_regions=["ap-southeast-1"]' -var "force-deregister=true" amazon-arm64.pkr.hcl
128129

amazon-arm64.pkr.hcl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,15 @@ variable "force-deregister" {
9292
default = false
9393
}
9494

95+
packer {
96+
required_plugins {
97+
amazon = {
98+
source = "github.com/hashicorp/amazon"
99+
version = "~> 1"
100+
}
101+
}
102+
}
103+
95104
# source block
96105
source "amazon-ebssurrogate" "source" {
97106
profile = "${var.profile}"

0 commit comments

Comments
 (0)