github.com/openshift/installer@v1.4.17/hack/release.sh (about) 1 #!/bin/sh 2 # 3 # Prepare for a release. Usage: 4 # 5 # $ hack/release.sh v0.1.0 6 7 set -ex 8 9 cd "$(dirname "$0")" 10 11 TAG="${1}" 12 13 git tag -sm "version ${TAG}" "${TAG}" 14 ./build.sh # ensure freshly-generated data 15 for GOOS in darwin linux 16 do 17 GOARCH=amd64 18 OUTPUT="bin/openshift-install-${GOOS}-${GOARCH}" 19 GOOS="${GOOS}" GOARCH="${GOARCH}" OUTPUT="${OUTPUT}" SKIP_GENERATION=y ./build.sh 20 done 21 ( 22 cd ../bin 23 sha256sum openshift-install-* >release.sha256 24 gpg --output release.sha256.sig --detach-sig release.sha256 25 )