multi: add release helper docker file
This commit is contained in:
9 files changed
+86
-2
No files matched your search
@@ -0,0 +1,34 @@
|
||||
# If you change this value, please change it in the following files as well:
|
||||
# /.travis.yml
|
||||
# /Dockerfile
|
||||
# /dev.Dockerfile
|
||||
# /.github/workflows/main.yml
|
||||
# /.github/workflows/release.yml
|
||||
FROM golang:1.15.6-buster
|
||||
|
||||
MAINTAINER Olaoluwa Osuntokun <laolu@lightning.engineering>
|
||||
|
||||
# Golang build related environment variables that are static and used for all
|
||||
# architectures/OSes.
|
||||
ENV GODEBUG netdns=cgo
|
||||
ENV GO111MODULE=auto
|
||||
ENV CGO_ENABLED=0
|
||||
|
||||
# Set up cache directories. Those will be mounted from the host system to speed
|
||||
# up builds. If go isn't installed on the host system, those will fall back to
|
||||
# temp directories during the build (see make/release_flags.mk).
|
||||
ENV GOCACHE=/tmp/build/.cache
|
||||
ENV GOMODCACHE=/tmp/build/.modcache
|
||||
|
||||
RUN apt-get update && apt-get install -y \
|
||||
git \
|
||||
make \
|
||||
tar \
|
||||
zip \
|
||||
bash \
|
||||
&& mkdir -p /tmp/build/lnd \
|
||||
&& mkdir -p /tmp/build/.cache \
|
||||
&& mkdir -p /tmp/build/.modcache \
|
||||
&& chmod -R 777 /tmp/build/
|
||||
|
||||
WORKDIR /tmp/build/lnd
|
||||
@@ -1,6 +1,16 @@
|
||||
VERSION_TAG = $(shell date +%Y%m%d)-01
|
||||
VERSION_CHECK = @$(call print, "Building master with date version tag")
|
||||
|
||||
DOCKER_RELEASE_HELPER = docker run \
|
||||
-it \
|
||||
--rm \
|
||||
--user $(shell id -u):$(shell id -g) \
|
||||
-v $(shell pwd):/tmp/build/lnd \
|
||||
-v $(shell bash -c "go env GOCACHE || (mkdir -p /tmp/go-cache; echo /tmp/go-cache)"):/tmp/build/.cache \
|
||||
-v $(shell bash -c "go env GOMODCACHE || (mkdir -p /tmp/go-modcache; echo /tmp/go-modcache)"):/tmp/build/.modcache \
|
||||
-e SKIP_VERSION_CHECK \
|
||||
lnd-release-helper
|
||||
|
||||
BUILD_SYSTEM = darwin-amd64 \
|
||||
dragonfly-amd64 \
|
||||
freebsd-386 \
|
||||
|
||||
Reference in new issue
Block a user