-
Notifications
You must be signed in to change notification settings - Fork 479
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #84 from algorand/relstable3.22.1
- Loading branch information
Showing
11 changed files
with
104 additions
and
106 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0 | ||
1 |
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,17 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -exo pipefail | ||
|
||
# Ensure the centos8 docker image is built and available | ||
|
||
DOCKER_IMAGE="algorand/go-algorand-ci-linux-centos8:amd64-$(sha1sum scripts/configure_dev-deps.sh | cut -f1 -d' ')" | ||
MATCH=${DOCKER_IMAGE/:*/} | ||
|
||
echo "Checking for RPM image" | ||
if docker images $DOCKER_IMAGE | grep -qs $MATCH > /dev/null 2>&1; then | ||
echo "Image exists" | ||
else | ||
echo "RPM image doesn't exist, building" | ||
docker build --platform=linux/amd64 --build-arg ARCH=amd64 \ | ||
--build-arg GOLANG_VERSION=$(./scripts/get_golang_version.sh) -t $DOCKER_IMAGE -f docker/build/cicd.centos8.Dockerfile . | ||
fi |
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
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 |
---|---|---|
|
@@ -10,18 +10,13 @@ echo | |
date "+build_release begin SIGN stage %Y%m%d_%H%M%S" | ||
echo | ||
|
||
if [ -z "$NETWORK" ]; then | ||
echo "[$0] NETWORK is missing." | ||
exit 1 | ||
fi | ||
|
||
CHANNEL=$(./scripts/release/mule/common/get_channel.sh "$NETWORK") | ||
CHANNEL=${CHANNEL:-$(./scripts/release/mule/common/get_channel.sh "$NETWORK")} | ||
VERSION=${VERSION:-$(./scripts/compute_build_number.sh -f)} | ||
PKG_DIR="./tmp/node_pkgs" | ||
[email protected] | ||
OS_TYPE=$(./scripts/release/mule/common/ostype.sh) | ||
ARCHS=(amd64 arm arm64) | ||
ARCH_BITS=(x86_64 armv7l aarch64) | ||
ARCHS=(amd64 arm64) | ||
ARCH_BITS=(x86_64 aarch64) | ||
# Note that we don't want to use $GNUPGHOME here because that is a documented env var for the gnupg | ||
# project and if it's set in the environment mule will automatically pick it up, which could have | ||
# unintended consequences and be hard to debug. | ||
|
@@ -40,6 +35,14 @@ then | |
find "$GPG_DIR" -type f -exec chmod 600 {} \; | ||
fi | ||
|
||
pushd /root | ||
cat << EOF > .rpmmacros | ||
%_gpg_name Algorand RPM <[email protected]> | ||
%__gpg /usr/bin/gpg2 | ||
%__gpg_check_password_cmd true | ||
EOF | ||
popd | ||
|
||
# Note that when downloading from the cloud that we'll get all packages for all architectures. | ||
if [ -n "$S3_SOURCE" ] | ||
then | ||
|
@@ -87,13 +90,14 @@ for os in "${OS_TYPES[@]}"; do | |
|
||
for file in *.rpm | ||
do | ||
rpmsign --addsign "$file" | ||
gpg -u [email protected] --detach-sign "$file" | ||
done | ||
|
||
HASHFILE="hashes_${CHANNEL}_${os}_${arch}_${VERSION}" | ||
md5sum *.tar.gz *.deb *.rpm >> "$HASHFILE" | ||
shasum -a 256 *.tar.gz *.deb *.rpm >> "$HASHFILE" | ||
shasum -a 512 *.tar.gz *.deb *.rpm >> "$HASHFILE" | ||
sha256sum *.tar.gz *.deb *.rpm >> "$HASHFILE" | ||
sha512sum *.tar.gz *.deb *.rpm >> "$HASHFILE" | ||
|
||
gpg -u "$SIGNING_KEY_ADDR" --detach-sign "$HASHFILE" | ||
gpg -u "$SIGNING_KEY_ADDR" --clearsign "$HASHFILE" | ||
|
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