File tree Expand file tree Collapse file tree 4 files changed +14
-1
lines changed Expand file tree Collapse file tree 4 files changed +14
-1
lines changed Original file line number Diff line number Diff line change
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"
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ packer_files_sha=$(find Makefile "packer/${os}" plugins/ -type f -print0 | xargs
22
22
internal_files_sha=$( find go.mod go.sum internal/ -type f -print0 | xargs -0 sha256sum | awk ' {print $1}' | sort | sha256sum | awk ' {print $1}' )
23
23
stable_agent_sha=$( curl -Lfs " https://download.buildkite.com/agent/stable/latest/${agent_binary} .sha256" )
24
24
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}' )
26
26
27
27
# Include variant in the hash so base and full images don’t clash
28
28
echo " Packer image hash for ${os} /${arch} (${variant} ) is ${packer_hash} "
Original file line number Diff line number Diff line change
1
+ # Last updated: 2025-09-09 12:36:23 UTC
Original file line number Diff line number Diff line change
1
+ # Last updated: 2025-09-09 12:36:23 UTC
You can’t perform that action at this time.
0 commit comments