File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change 18
18
mkdir -p " build/"
19
19
20
20
# Build a hash of packer files and the agent versions
21
- # Include variant in the hash so base and full images don’t clash
22
21
packer_files_sha=$( find Makefile " packer/${os} " plugins/ -type f -print0 | xargs -0 sha256sum | awk ' {print $1}' | sort | sha256sum | awk ' {print $1}' )
23
22
internal_files_sha=$( find go.mod go.sum internal/ -type f -print0 | xargs -0 sha256sum | awk ' {print $1}' | sort | sha256sum | awk ' {print $1}' )
24
23
stable_agent_sha=$( curl -Lfs " https://download.buildkite.com/agent/stable/latest/${agent_binary} .sha256" )
25
24
unstable_agent_sha=$( curl -Lfs " https://download.buildkite.com/agent/unstable/latest/${agent_binary} .sha256" )
26
25
packer_hash=$( echo " $packer_files_sha " " $internal_files_sha " " $arch " " $stable_agent_sha " " $unstable_agent_sha " | sha256sum | awk ' {print $1}' )
27
26
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} "
29
29
if [[ " ${variant} " == " base" ]]; then
30
30
packer_file=" packer-${packer_hash} -${os} -${arch} -base.output"
You can’t perform that action at this time.
0 commit comments