Update to Go 1.16

(and add riscv64 binaries 👀)
This commit is contained in:
Tianon Gravi 2021-03-10 11:41:09 -08:00
parent e7586033ad
commit 7143aaa8ad
4 changed files with 7 additions and 3 deletions

View File

@ -1,4 +1,4 @@
FROM golang:1.13-buster AS build
FROM golang:1.16-buster AS build
SHELL ["bash", "-Eeuo", "pipefail", "-xc"]

View File

@ -1,4 +1,4 @@
FROM golang:1.13-buster
FROM golang:1.16-buster
SHELL ["bash", "-Eeuo", "pipefail", "-xc"]
@ -23,6 +23,7 @@ ENV BASHBREW_ARCHES \
i386 \
mips64le \
ppc64le \
riscv64 \
s390x \
windows-amd64
@ -39,6 +40,8 @@ RUN export GNUPGHOME="$(mktemp -d)"; \
mkdir -p bin; \
\
for bashbrewArch in $BASHBREW_ARCHES; do \
# TODO convince estesp to release riscv64 binaries (https://github.com/estesp/manifest-tool/pull/113 👀)
if [ "$bashbrewArch" = 'riscv64' ]; then continue; fi; \
( \
goEnv="$(bashbrew-arch-to-goenv.sh "$bashbrewArch")"; eval "$goEnv"; \
srcBin="manifest-tool-$GOOS-$GOARCH"; \

View File

@ -1,4 +1,4 @@
FROM golang:1.13-buster
FROM golang:1.16-buster
SHELL ["bash", "-Eeuo", "pipefail", "-xc"]

View File

@ -20,6 +20,7 @@ var SupportedArches = map[string]OCIPlatform{
"i386": {OS: "linux", Architecture: "386"},
"mips64le": {OS: "linux", Architecture: "mips64le"},
"ppc64le": {OS: "linux", Architecture: "ppc64le"},
"riscv64": {OS: "linux", Architecture: "riscv64"},
"s390x": {OS: "linux", Architecture: "s390x"},
"windows-amd64": {OS: "windows", Architecture: "amd64"},