-
Notifications
You must be signed in to change notification settings - Fork 525
build refinements 20190617 #44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,7 +4,8 @@ | |
| # be prompted for GPG key password at a couple points. | ||
| # | ||
| # Externally settable env vars: | ||
| # S3_PREFIX= where to upload build artifacts | ||
| # S3_PREFIX= where to upload build artifacts (no trailing /) | ||
| # S3_PREFIX_BUILDLOG= where upload build log (no trailing /) | ||
| # AWS_EFS_MOUNT= NFS to mount for `aptly` persistent state and scratch storage | ||
| # SIGNING_KEY_ADDR= dev@algorand.com or similar for GPG key | ||
| # RSTAMP= `scripts/reverse_hex_timestamp` | ||
|
|
@@ -16,10 +17,6 @@ date "+build_release start %Y%m%d_%H%M%S" | |
| set -e | ||
| set -x | ||
|
|
||
| if [ -z "${S3_PREFIX}" ]; then | ||
| S3_PREFIX=s3://algorand-builds | ||
| fi | ||
|
|
||
| # persistent storage of repo manager scratch space is on EFS | ||
| if [ ! -z "${AWS_EFS_MOUNT}" ]; then | ||
| if mount|grep -q /data; then | ||
|
|
@@ -37,6 +34,14 @@ fi | |
| export GOPATH=${HOME}/go | ||
| export PATH=${HOME}/gpgbin:${GOPATH}/bin:/usr/local/go/bin:${PATH} | ||
|
|
||
| # a previous docker centos build can leave junk owned by root. chown and clean | ||
| sudo chown -R ${USER} ${GOPATH} | ||
| if [ -f ${GOPATH}/src/github.com/algorand/go-algorand/crypto/libsodium-fork/Makefile ]; then | ||
| (cd ${GOPATH}/src/github.com/algorand/go-algorand/crypto/libsodium-fork && make distclean) | ||
| fi | ||
| rm -rf ${GOPATH}/src/github.com/algorand/go-algorand/crypto/lib | ||
|
|
||
|
|
||
| cd ${GOPATH}/src/github.com/algorand/go-algorand | ||
| export RELEASE_GENESIS_PROCESS=true | ||
| export TRANSITION_TELEMETRY_BUILDS=true | ||
|
|
@@ -136,7 +141,9 @@ gpg --detach-sign "${HASHFILE}" | |
| gpg --clearsign "${HASHFILE}" | ||
|
|
||
| echo RSTAMP=${RSTAMP} > "${HOME}/rstamp" | ||
| aws s3 sync --quiet --exclude dev\* --exclude master\* --exclude nightly\* --exclude stable\* --acl public-read ./ ${S3_PREFIX}/${CHANNEL}/${RSTAMP}_${FULLVERSION}/ | ||
| if [ ! -z "${S3_PREFIX}" ]; then | ||
| aws s3 sync --quiet --exclude dev\* --exclude master\* --exclude nightly\* --exclude stable\* --acl public-read ./ ${S3_PREFIX}/${CHANNEL}/${RSTAMP}_${FULLVERSION}/ | ||
| fi | ||
|
|
||
| # copy .rpm file to intermediate yum repo scratch space, actual publish manually later | ||
| if [ ! -d /data/yumrepo ]; then | ||
|
|
@@ -172,7 +179,9 @@ EOF | |
| dpkg -l >>"${STATUSFILE}" | ||
| gpg --clearsign "${STATUSFILE}" | ||
| gzip "${STATUSFILE}.asc" | ||
| aws s3 cp --quiet "${STATUSFILE}.asc.gz" "s3://algorand-devops-misc/buildlog/${RSTAMP}/${STATUSFILE}.asc.gz" | ||
| if [ ! -z "${S3_PREFIX_BUILDLOG}" ]; then | ||
| aws s3 cp --quiet "${STATUSFILE}.asc.gz" "${S3_PREFIX_BUILDLOG}/${RSTAMP}/${STATUSFILE}.asc.gz" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. any reason this is silent but buildlog copy below (in build_release_local.sh) is not?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this script is expected to run as a script and be recorded to a log file. |
||
| fi | ||
|
|
||
| # use aptly to push .deb to its serving repo | ||
| # Leave .deb publishing to manual step after we do more checks on the release artifacts. | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have we transitioned? Can we remove this flag entirely?