Build deb in docker (#8126)
This allows us to build on Ubuntu 20.04 a little longer.
This commit is contained in:
parent
585319f247
commit
3e8ccdb8ba
|
|
@ -29,7 +29,7 @@ jobs:
|
|||
id: build
|
||||
env:
|
||||
GO_VERSION: ${{ matrix.GO_VERSION }}
|
||||
run: ./tools/make-assets.sh
|
||||
run: docker run -v $PWD:/boulder -e GO_VERSION=$GO_VERSION -e COMMIT_ID="$(git rev-parse --short=8 HEAD)" ubuntu:20.04 bash -c 'apt update && apt -y install gnupg2 curl sudo git gcc && cd /boulder/ && ./tools/make-assets.sh'
|
||||
|
||||
- name: Compute checksums
|
||||
id: checksums
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ jobs:
|
|||
id: build
|
||||
env:
|
||||
GO_VERSION: ${{ matrix.GO_VERSION }}
|
||||
run: ./tools/make-assets.sh
|
||||
run: docker run -v $PWD:/boulder -e GO_VERSION=$GO_VERSION -e COMMIT_ID="$(git rev-parse --short=8 HEAD)" ubuntu:20.04 bash -c 'apt update && apt -y install gnupg2 curl sudo git gcc && cd /boulder/ && ./tools/make-assets.sh'
|
||||
|
||||
- name: Compute checksums
|
||||
id: checksums
|
||||
|
|
|
|||
|
|
@ -24,22 +24,16 @@ export PATH=/usr/local/go/bin:$PATH
|
|||
#
|
||||
# Build
|
||||
#
|
||||
LDFLAGS="-X \"github.com/letsencrypt/boulder/core.BuildID=${COMMIT_ID}\" -X \"github.com/letsencrypt/boulder/core.BuildTime=$(date -u)\" -X \"github.com/letsencrypt/boulder/core.BuildHost=$(whoami)@$(hostname)\""
|
||||
GOBIN=$PWD/bin/ GO111MODULE=on go install -mod=vendor -buildvcs=false -ldflags "${LDFLAGS}" ./...
|
||||
|
||||
# Set $VERSION to be a simulacrum of what is set in other build environments.
|
||||
VERSION="${GO_VERSION}.$(date +%s)"
|
||||
|
||||
# Build Boulder.
|
||||
make
|
||||
|
||||
# Produce a .deb and .tar.gz in $PWD without using `make` or `fpm`. The
|
||||
# resulting files will be named `boulder-newpkg-*`. Eventually this code
|
||||
# will be used to produce the regular `boulder-*` packages.
|
||||
BOULDER="${PWD}"
|
||||
BUILD="$(mktemp -d)"
|
||||
TARGET="${BUILD}/opt/boulder"
|
||||
|
||||
COMMIT_ID="$(git rev-parse --short=8 HEAD)"
|
||||
|
||||
mkdir -p "${TARGET}/bin"
|
||||
for NAME in admin boulder ceremony ct-test-srv pardot-test-srv chall-test-srv ; do
|
||||
cp -a "bin/${NAME}" "${TARGET}/bin/"
|
||||
|
|
|
|||
Loading…
Reference in New Issue