Skip to content

Commit 61667cd

Browse files
committed
fmt
1 parent f6b7e3d commit 61667cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.buildkite/steps/packer.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ fi
1818
mkdir -p "build/"
1919

2020
# Build a hash of packer files and the agent versions
21-
# Include variant in the hash so base and full images don’t clash
2221
packer_files_sha=$(find Makefile "packer/${os}" plugins/ -type f -print0 | xargs -0 sha256sum | awk '{print $1}' | sort | sha256sum | awk '{print $1}')
2322
internal_files_sha=$(find go.mod go.sum internal/ -type f -print0 | xargs -0 sha256sum | awk '{print $1}' | sort | sha256sum | awk '{print $1}')
2423
stable_agent_sha=$(curl -Lfs "https://download.buildkite.com/agent/stable/latest/${agent_binary}.sha256")
2524
unstable_agent_sha=$(curl -Lfs "https://download.buildkite.com/agent/unstable/latest/${agent_binary}.sha256")
2625
packer_hash=$(echo "$packer_files_sha" "$internal_files_sha" "$arch" "$stable_agent_sha" "$unstable_agent_sha" | sha256sum | awk '{print $1}')
2726

27+
# 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}"
2929
if [[ "${variant}" == "base" ]]; then
3030
packer_file="packer-${packer_hash}-${os}-${arch}-base.output"

0 commit comments

Comments
 (0)