Skip to content

Commit

Permalink
Restore img_tag_suffix var
Browse files Browse the repository at this point in the history
  • Loading branch information
dometto committed Oct 22, 2024
1 parent af4b69b commit dc35583
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions ubuntu/src-ubuntu.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ variable "container_repo" {
type = string
}

# pack.sh will set this variable to "-pilot" for pilot versions of the images
variable "img_tag_suffix" {
default = ""
type = string
}

variable "ansible_host" {
default = "packer-src"
type = string
Expand Down Expand Up @@ -222,12 +228,12 @@ build {

post-processor "docker-tag" {
only = ["docker.ubuntu"]
repository = "${var.container_repo}"
repository = "${var.container_repo}${var.img_tag_suffix}"
}

post-processor "shell-local" {
only = ["podman.ubuntu"]
inline = ["podman tag ${build.ImageSha256} ${var.container_repo}", "podman system prune -f"]
inline = ["podman tag ${build.ImageSha256} ${var.container_repo}${var.img_tag_suffix}", "podman system prune -f"]
}

post-processor "shell-local" {
Expand Down

0 comments on commit dc35583

Please sign in to comment.