From 6287e6d9f828d7baeaee44d39891a135a01e981a Mon Sep 17 00:00:00 2001 From: ejv <5449003+ejv@users.noreply.github.com> Date: Wed, 18 Jan 2023 15:53:34 +0000 Subject: [PATCH] Update Packer to release version 1.8.5 --- packer/Dockerfile | 2 +- packer/README.md | 2 +- packer/cloudbuild.yaml | 4 ++-- packer/examples/gce/build.pkr.hcl | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packer/Dockerfile b/packer/Dockerfile index 552da422d..c8a7b2ef2 100644 --- a/packer/Dockerfile +++ b/packer/Dockerfile @@ -1,4 +1,4 @@ -FROM alpine:3.14 AS build +FROM alpine:3.17.1 AS build ARG PACKER_VERSION ARG PACKER_VERSION_SHA256SUM diff --git a/packer/README.md b/packer/README.md index ad1159316..cb171c6b7 100644 --- a/packer/README.md +++ b/packer/README.md @@ -23,7 +23,7 @@ gcloud builds submit . > **Advanced builder building:** To specify a particular version of packer, provide the packer version > number, and the checksum of that version's zip archive, as Cloud Build [substitutions][substitutions]: > ``` -> gcloud builds submit --substitutions=_PACKER_VERSION=1.7.8,_PACKER_VERSION_SHA256SUM=8a94b84542d21b8785847f4cccc8a6da4c7be5e16d4b1a2d0a5f7ec5532faec0 . +> gcloud builds submit --substitutions=_PACKER_VERSION=1.8.5,_PACKER_VERSION_SHA256SUM=1f17a724e5ccc696010c842e6d2bb2c2749ab18ce7bf06482012d3ddb9edeef2 . > ``` [substitutions]: https://cloud.google.com/cloud-build/docs/configuring-builds/substitute-variable-values#using_user-defined_substitutions diff --git a/packer/cloudbuild.yaml b/packer/cloudbuild.yaml index 9f1d374a0..f06f44abc 100644 --- a/packer/cloudbuild.yaml +++ b/packer/cloudbuild.yaml @@ -12,8 +12,8 @@ steps: '--build-arg', 'PACKER_VERSION_SHA256SUM=${_PACKER_VERSION_SHA256SUM}', '.'] substitutions: - _PACKER_VERSION: 1.7.8 - _PACKER_VERSION_SHA256SUM: 8a94b84542d21b8785847f4cccc8a6da4c7be5e16d4b1a2d0a5f7ec5532faec0 + _PACKER_VERSION: 1.8.5 + _PACKER_VERSION_SHA256SUM: 1f17a724e5ccc696010c842e6d2bb2c2749ab18ce7bf06482012d3ddb9edeef2 images: - 'gcr.io/$PROJECT_ID/packer:latest' diff --git a/packer/examples/gce/build.pkr.hcl b/packer/examples/gce/build.pkr.hcl index 4b4a90015..b8cb1780e 100644 --- a/packer/examples/gce/build.pkr.hcl +++ b/packer/examples/gce/build.pkr.hcl @@ -12,7 +12,7 @@ variable "builder_sa" { source "googlecompute" "test-image" { project_id = var.project_id - source_image_family = "ubuntu-2104" + source_image_family = "ubuntu-2204-lts" zone = var.zone image_description = "Created with Packer from Cloudbuild" ssh_username = "root"