forked from TrueCloudLab/distribution
Merge pull request #3474 from thaJeztah/update_go_116
Update to go 1.16, and run CI on 1.15.x and 1.16.x
This commit is contained in:
commit
ecdf4b7e43
3 changed files with 11 additions and 6 deletions
8
.github/workflows/ci.yml
vendored
8
.github/workflows/ci.yml
vendored
|
@ -12,7 +12,11 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
strategy:
|
||||||
|
matrix:
|
||||||
|
go-version: ["1.15.x", "1.16.x"]
|
||||||
|
platform: ["ubuntu-latest"]
|
||||||
|
runs-on: ${{ matrix.platform }}
|
||||||
env:
|
env:
|
||||||
DOCKER_BUILDTAGS: "include_oss include_gcs"
|
DOCKER_BUILDTAGS: "include_oss include_gcs"
|
||||||
CGO_ENABLED: 1
|
CGO_ENABLED: 1
|
||||||
|
@ -30,7 +34,7 @@ jobs:
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v2
|
uses: actions/setup-go@v2
|
||||||
with:
|
with:
|
||||||
go-version: 1.15.*
|
go-version: ${{ matrix.go-version }}
|
||||||
|
|
||||||
- name: Dependencies
|
- name: Dependencies
|
||||||
run: |
|
run: |
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
ARG GO_VERSION=1.15
|
ARG GO_VERSION=1.16
|
||||||
|
|
||||||
FROM golang:${GO_VERSION}-alpine3.12 AS build
|
FROM golang:${GO_VERSION}-alpine3.14 AS build
|
||||||
|
|
||||||
|
ENV GO111MODULE=auto
|
||||||
ENV DISTRIBUTION_DIR /go/src/github.com/distribution/distribution
|
ENV DISTRIBUTION_DIR /go/src/github.com/distribution/distribution
|
||||||
ENV BUILDTAGS include_oss include_gcs
|
ENV BUILDTAGS include_oss include_gcs
|
||||||
|
|
||||||
|
@ -18,7 +19,7 @@ WORKDIR $DISTRIBUTION_DIR
|
||||||
COPY . $DISTRIBUTION_DIR
|
COPY . $DISTRIBUTION_DIR
|
||||||
RUN CGO_ENABLED=0 make PREFIX=/go clean binaries && file ./bin/registry | grep "statically linked"
|
RUN CGO_ENABLED=0 make PREFIX=/go clean binaries && file ./bin/registry | grep "statically linked"
|
||||||
|
|
||||||
FROM alpine:3.12
|
FROM alpine:3.14
|
||||||
|
|
||||||
RUN set -ex \
|
RUN set -ex \
|
||||||
&& apk add --no-cache ca-certificates
|
&& apk add --no-cache ca-certificates
|
||||||
|
|
|
@ -60,7 +60,7 @@ to the 1.0 registry. Requests from newer clients will route to the 2.0 registry.
|
||||||
$ docker-compose build
|
$ docker-compose build
|
||||||
registryv1 uses an image, skipping
|
registryv1 uses an image, skipping
|
||||||
Building registryv2...
|
Building registryv2...
|
||||||
Step 0 : FROM golang:1.15
|
Step 0 : FROM golang:1.16
|
||||||
|
|
||||||
...
|
...
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue