forked from vectordotdev/vector
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add checksums for artifacts (vectordotdev#18483)
* feat: Add checksums for artifacts * add newline for code formatter * fix shellcheck ding * add extglob to expect.txt
- Loading branch information
1 parent
5cfb3e4
commit f11eeb3
Showing
4 changed files
with
96 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/usr/bin/env bash | ||
set -euo pipefail | ||
|
||
# checksum.sh | ||
# | ||
# SUMMARY | ||
# | ||
# Creates a SHA256 checksum of all artifacts created during CI | ||
|
||
ROOT=$(git rev-parse --show-toplevel) | ||
VECTOR_VERSION=${VECTOR_VERSION:-nightly} | ||
|
||
pushd "${ROOT}/target/artifacts" | ||
|
||
shopt -s extglob | ||
ARTIFACTS=$(ls !(*SHA256SUMS)) | ||
shopt -u extglob | ||
|
||
# shellcheck disable=SC2086 # Intended splitting of ARTIFACTS | ||
sha256sum $ARTIFACTS > vector-"$VECTOR_VERSION"-SHA256SUMS | ||
|
||
popd |