Skip to content

Commit 342e89c

Browse files
authored
Merge branch 'main' into cf_template_wording_SUP-4542
2 parents 34ce2a7 + 2379776 commit 342e89c

File tree

4 files changed

+14
-1
lines changed

4 files changed

+14
-1
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
set -euo pipefail
3+
4+
timestamp=$(date -u +"%Y-%m-%d %H:%M:%S UTC")
5+
6+
echo "# Last updated: ${timestamp}" >"packer/windows/.trigger-base-build"
7+
echo "# Last updated: ${timestamp}" >"packer/linux/.trigger-base-build"
8+
9+
git add packer/windows/.trigger-base-build packer/linux/.trigger-base-build
10+
11+
echo "Base AMI rebuild triggers updated"

.buildkite/steps/packer.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ packer_files_sha=$(find Makefile "packer/${os}" plugins/ -type f -print0 | xargs
2222
internal_files_sha=$(find go.mod go.sum internal/ -type f -print0 | xargs -0 sha256sum | awk '{print $1}' | sort | sha256sum | awk '{print $1}')
2323
stable_agent_sha=$(curl -Lfs "https://download.buildkite.com/agent/stable/latest/${agent_binary}.sha256")
2424
unstable_agent_sha=$(curl -Lfs "https://download.buildkite.com/agent/unstable/latest/${agent_binary}.sha256")
25-
packer_hash=$(echo "$packer_files_sha" "$internal_files_sha" "$arch" "$stable_agent_sha" "$unstable_agent_sha" | sha256sum | awk '{print $1}')
25+
packer_hash=$(echo "$packer_files_sha" "$internal_files_sha" "$arch" "$stable_agent_sha" "$unstable_agent_sha" "$variant" | sha256sum | awk '{print $1}')
2626

2727
# Include variant in the hash so base and full images don’t clash
2828
echo "Packer image hash for ${os}/${arch} (${variant}) is ${packer_hash}"

packer/linux/.trigger-base-build

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Last updated: 2025-09-09 12:36:23 UTC

packer/windows/.trigger-base-build

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Last updated: 2025-09-09 12:36:23 UTC

0 commit comments

Comments
 (0)