mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
scripts/release: rename SHA256SUM to SHA256SUMS
These files are commonly called SHA256SUMS and with this change rget works for v3.4.0 as well.
This commit is contained in:
parent
93ae5d2f5b
commit
f108a32393
@ -596,7 +596,7 @@ Note: **v3.5 will deprecate `etcd --log-package-levels` flag for `capnslog`**; `
|
|||||||
|
|
||||||
- Add [`etcd-dump-logs --entry-type`](https://github.com/etcd-io/etcd/pull/9628) flag to support WAL log filtering by entry type.
|
- Add [`etcd-dump-logs --entry-type`](https://github.com/etcd-io/etcd/pull/9628) flag to support WAL log filtering by entry type.
|
||||||
- Add [`etcd-dump-logs --stream-decoder`](https://github.com/etcd-io/etcd/pull/9790) flag to support custom decoder.
|
- Add [`etcd-dump-logs --stream-decoder`](https://github.com/etcd-io/etcd/pull/9790) flag to support custom decoder.
|
||||||
- Add [`SHA256SUM`](https://github.com/etcd-io/etcd/pull/11087) file to release assets.
|
- Add [`SHA256SUMS`](https://github.com/etcd-io/etcd/pull/11087) file to release assets.
|
||||||
- etcd maintainers are a distributed team, this change allows for releases to be cut and validation provided without requiring a signing key.
|
- etcd maintainers are a distributed team, this change allows for releases to be cut and validation provided without requiring a signing key.
|
||||||
|
|
||||||
### Go
|
### Go
|
||||||
|
@ -140,15 +140,15 @@ main() {
|
|||||||
./release/etcd-${RELEASE_VERSION}-$(go env GOOS)-amd64/etcd --version | grep -q "etcd Version: ${VERSION}" || true
|
./release/etcd-${RELEASE_VERSION}-$(go env GOOS)-amd64/etcd --version | grep -q "etcd Version: ${VERSION}" || true
|
||||||
./release/etcd-${RELEASE_VERSION}-$(go env GOOS)-amd64/etcdctl version | grep -q "etcdctl version: ${VERSION}" || true
|
./release/etcd-${RELEASE_VERSION}-$(go env GOOS)-amd64/etcdctl version | grep -q "etcdctl version: ${VERSION}" || true
|
||||||
|
|
||||||
# Generate SHA256SUM
|
# Generate SHA256SUMS
|
||||||
echo -e "Generating sha256sum of release artifacts.\n"
|
echo -e "Generating sha256sums of release artifacts.\n"
|
||||||
pushd ./release
|
pushd ./release
|
||||||
ls . | grep -E '\.tar.gz$|\.zip$' | xargs shasum -a 256 > ./SHA256SUM
|
ls . | grep -E '\.tar.gz$|\.zip$' | xargs shasum -a 256 > ./SHA256SUMS
|
||||||
popd
|
popd
|
||||||
if [ -s ./release/SHA256SUM ]; then
|
if [ -s ./release/SHA256SUMS ]; then
|
||||||
cat ./release/SHA256SUM
|
cat ./release/SHA256SUMS
|
||||||
else
|
else
|
||||||
echo "sha256sum is not valid. Aborting."
|
echo "sha256sums is not valid. Aborting."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -158,7 +158,7 @@ main() {
|
|||||||
else
|
else
|
||||||
read -p "Upload etcd ${RELEASE_VERSION} release artifacts to gs://etcd [y/N]? " confirm
|
read -p "Upload etcd ${RELEASE_VERSION} release artifacts to gs://etcd [y/N]? " confirm
|
||||||
[[ "${confirm,,}" == "y" ]] || exit 1
|
[[ "${confirm,,}" == "y" ]] || exit 1
|
||||||
gsutil -m cp ./release/SHA256SUM gs://etcd/${RELEASE_VERSION}/
|
gsutil -m cp ./release/SHA256SUMS gs://etcd/${RELEASE_VERSION}/
|
||||||
gsutil -m cp ./release/*.zip gs://etcd/${RELEASE_VERSION}/
|
gsutil -m cp ./release/*.zip gs://etcd/${RELEASE_VERSION}/
|
||||||
gsutil -m cp ./release/*.tar.gz gs://etcd/${RELEASE_VERSION}/
|
gsutil -m cp ./release/*.tar.gz gs://etcd/${RELEASE_VERSION}/
|
||||||
gsutil -m acl ch -u allUsers:R -r gs://etcd/${RELEASE_VERSION}/
|
gsutil -m acl ch -u allUsers:R -r gs://etcd/${RELEASE_VERSION}/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user