1
0
mirror of https://github.com/openshift/installer.git synced 2026-02-05 15:47:14 +01:00
Files
installer/hack/release.sh
W. Trevor King 650760fa6e hack/release: Compute release.sha256(.sig)
I've been working these up by hand for the last several releases to
give users who trust my key but not GitHub (possibly an empty set ;) a
way to verify the authenticity of downloaded installers.  This commit
just institutionalizes the procedure.
2019-02-28 01:11:40 -08:00

26 lines
504 B
Bash
Executable File

#!/bin/sh
#
# Prepare for a release. Usage:
#
# $ hack/release.sh v0.1.0
set -ex
cd "$(dirname "$0")"
TAG="${1}"
git tag -sm "version ${TAG}" "${TAG}"
./build.sh # ensure freshly-generated data
for GOOS in darwin linux
do
GOARCH=amd64
OUTPUT="bin/openshift-install-${GOOS}-${GOARCH}"
GOOS="${GOOS}" GOARCH="${GOARCH}" OUTPUT="${OUTPUT}" SKIP_GENERATION=y ./build.sh
done
(
cd ../bin
sha256sum openshift-install-* >release.sha256
gpg --output release.sha256.sig --detach-sig release.sha256
)