Skip to content

Commit

Permalink
Update build.pkr.hcl
Browse files Browse the repository at this point in the history
  • Loading branch information
arnol377 committed Aug 26, 2024
1 parent 55a9380 commit 8d734f5
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions build.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,15 @@ build {
ansible_env_vars = ["ANSIBLE_STDOUT_CALLBACK=yaml", "ANSIBLE_NOCOLOR=True"]
}

post-processor "docker-tag" {
repository = "${local.ecr_repo}/${var.project_name}"
tag = [local.tag]
}
post-processors {
post-processor "docker-tag" {
repository = "${local.ecr_repo}/${var.project_name}"
tag = [local.tag]
}

post-processor "docker-push" {
ecr_login = true
login_server = "${local.aws_account_id}.dkr.ecr.${local.aws_region}.amazonaws.com"
post-processor "docker-push" {
ecr_login = true
login_server = "${local.aws_account_id}.dkr.ecr.${local.aws_region}.amazonaws.com"
}
}
}

0 comments on commit 8d734f5

Please sign in to comment.