Test and build official packages with Go 1.12 (#5923)

This commit is contained in:
Daniel Nelson
2019-05-29 18:54:44 -07:00
committed by GitHub
parent dd6a3dbafc
commit 59d646a8e8
5 changed files with 72 additions and 17 deletions

View File

@@ -1,4 +1,4 @@
FROM golang:1.11.5
FROM golang:1.11.10
RUN chmod -R 755 "$GOPATH"

28
scripts/ci-1.12.docker Normal file
View File

@@ -0,0 +1,28 @@
FROM golang:1.12.5
RUN chmod -R 755 "$GOPATH"
RUN DEBIAN_FRONTEND=noninteractive \
apt update && apt install -y --no-install-recommends \
autoconf \
git \
libtool \
locales \
make \
python-boto \
rpm \
ruby \
ruby-dev \
zip && \
rm -rf /var/lib/apt/lists/*
RUN ln -sf /usr/share/zoneinfo/Etc/UTC /etc/localtime
RUN locale-gen C.UTF-8 || true
ENV LANG=C.UTF-8
RUN gem install fpm
RUN go get -d github.com/golang/dep && \
cd src/github.com/golang/dep && \
git checkout -q v0.5.0 && \
go install -ldflags="-X main.version=v0.5.0" ./cmd/dep