mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
scripts/release: list GPG key only when tagging is needed
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
This commit is contained in:
parent
fac434b952
commit
fd5a25fcec
@ -37,12 +37,6 @@ main() {
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
KEYID=$(gpg --list-keys --with-colons| awk -F: '/^pub:/ { print $5 }')
|
|
||||||
if [[ -z "${KEYID}" ]]; then
|
|
||||||
echo "Failed to load gpg key. Is gpg set up correctly for etcd releases?"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Expected umask for etcd release artifacts
|
# Expected umask for etcd release artifacts
|
||||||
umask 022
|
umask 022
|
||||||
|
|
||||||
@ -116,6 +110,11 @@ main() {
|
|||||||
echo "Skipping tag step. git tag ${RELEASE_VERSION} already exists."
|
echo "Skipping tag step. git tag ${RELEASE_VERSION} already exists."
|
||||||
else
|
else
|
||||||
echo "Tagging release..."
|
echo "Tagging release..."
|
||||||
|
KEYID=$(gpg --list-keys --with-colons| awk -F: '/^pub:/ { print $5 }')
|
||||||
|
if [[ -z "${KEYID}" ]]; then
|
||||||
|
echo "Failed to load gpg key. Is gpg set up correctly for etcd releases?"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
git tag --local-user "${KEYID}" --sign "${RELEASE_VERSION}" --message "${RELEASE_VERSION}"
|
git tag --local-user "${KEYID}" --sign "${RELEASE_VERSION}" --message "${RELEASE_VERSION}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user