File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 17
17
mkdir -p " build/"
18
18
19
19
# Build a hash of packer files and the agent versions
20
- packer_files_sha=$( find Makefile " packer/${os} " plugins/ -type f -print0 | xargs -0 sha1sum | awk ' {print $1}' | sort | sha1sum | awk ' {print $1}' )
21
- internal_files_sha=$( find go.mod go.sum internal/ -type f -print0 | xargs -0 sha1sum | awk ' {print $1}' | sort | sha1sum | awk ' {print $1}' )
20
+ packer_files_sha=$( find Makefile " packer/${os} " plugins/ -type f -print0 | xargs -0 sha256sum | awk ' {print $1}' | sort | sha256sum | awk ' {print $1}' )
21
+ internal_files_sha=$( find go.mod go.sum internal/ -type f -print0 | xargs -0 sha256sum | awk ' {print $1}' | sort | sha256sum | awk ' {print $1}' )
22
22
stable_agent_sha=$( curl -Lfs " https://download.buildkite.com/agent/stable/latest/${agent_binary} .sha256" )
23
23
unstable_agent_sha=$( curl -Lfs " https://download.buildkite.com/agent/unstable/latest/${agent_binary} .sha256" )
24
- packer_hash=$( echo " $packer_files_sha " " $internal_files_sha " " $arch " " $stable_agent_sha " " $unstable_agent_sha " | sha1sum | awk ' {print $1}' )
24
+ packer_hash=$( echo " $packer_files_sha " " $internal_files_sha " " $arch " " $stable_agent_sha " " $unstable_agent_sha " | sha256sum | awk ' {print $1}' )
25
25
26
26
echo " Packer image hash for ${os} /${arch} is ${packer_hash} "
27
27
packer_file=" packer-${packer_hash} -${os} -${arch} .output"
You can’t perform that action at this time.
0 commit comments