Skip to content
This repository was archived by the owner on Mar 22, 2024. It is now read-only.
Merged
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
8 changes: 5 additions & 3 deletions ci/make_deb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,19 @@ echo "Release: $RELEASE"
SCRIPT_LOCATION=$(cd "$(dirname "$0")"; pwd)
echo "Script location: $SCRIPT_LOCATION"

go_build_args=

if [ x"${BUILD_PLATFORM}" = xubuntu1604 ]; then
echo "Building on Ubuntu1604 with old libc: setting CGO_ENABLED=0"
export CGO_ENABLED=0
go_build_args="-ldflags=--extldflags=-Wl,--compress-debug-sections=none"
echo "Building on Ubuntu 16.04 with old ld: running go build with ${go_build_args}"
fi

echo "Building package"
cd ${CVMFS_GATEWAY_SOURCES}
export GOPATH=${GOPATH:=${CVMFS_GATEWAY_SOURCES}/../go}
export GOCACHE=${CVMFS_GATEWAY_SOURCES}/../gocache
go env
go build -mod=vendor
go build -mod=vendor $go_build_args

PACKAGE_NAME_SUFFIX="+$(lsb_release -si | tr [:upper:] [:lower:])$(lsb_release -sr)_amd64"
PACKAGE_NAME=cvmfs-gateway_$VERSION~$RELEASE$PACKAGE_NAME_SUFFIX.deb
Expand Down