Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 10 additions & 5 deletions buildspecs/build.yml → buildspecs/build-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: 0.2
env:
variables:
# Github username of the forked repo on which to make builds
GITHUBUSERNAME: aws
GITHUBUSERNAME: prateekchaudhry

phases:
install:
Expand All @@ -19,13 +19,18 @@ phases:
;;
esac

- echo $GOROOT
- echo $GOPATH
- echo $GOBIN
- which go
- goenv install --list
- GOVERSION="$(cat GO_VERSION)"
- GOVERSION="1.15.5"
- BUILD_LOG="build_${architecture}.log"
- GOLANG_TAR="go${GOVERSION}.linux-${architecture}.tar.gz"

# Need to install GOLANG explicitly as required versions do not come preinstalled
- wget -O /tmp/${GOLANG_TAR} https://storage.googleapis.com/golang/${GOLANG_TAR} 2>&1 | tee $BUILD_LOG
- tar -C /usr/local -xzf /tmp/${GOLANG_TAR} 2>&1 | tee -a $BUILD_LOG
# Install the correct version of GoLang using goenv utility (preinstalled in CodeBuild images)
- goenv install $GOVERSION
- goenv local $GOVERSION
- go version

# glibc-static required for dockerfree make method
Expand Down