Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to go 1.16, and run CI on 1.15.x and 1.16.x #3474

Merged
merged 1 commit into from Aug 19, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 6 additions & 2 deletions .github/workflows/ci.yml
Expand Up @@ -12,7 +12,11 @@ on:
jobs:

build:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: ["1.15.x", "1.16.x"]
platform: ["ubuntu-latest"]
runs-on: ${{ matrix.platform }}
env:
DOCKER_BUILDTAGS: "include_oss include_gcs"
CGO_ENABLED: 1
Expand All @@ -30,7 +34,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.15.*
go-version: ${{ matrix.go-version }}

- name: Dependencies
run: |
Expand Down
7 changes: 4 additions & 3 deletions Dockerfile
@@ -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 BUILDTAGS include_oss include_gcs

Expand All @@ -18,7 +19,7 @@ WORKDIR $DISTRIBUTION_DIR
COPY . $DISTRIBUTION_DIR
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 \
&& apk add --no-cache ca-certificates
Expand Down
2 changes: 1 addition & 1 deletion contrib/compose/README.md
Expand Up @@ -60,7 +60,7 @@ to the 1.0 registry. Requests from newer clients will route to the 2.0 registry.
$ docker-compose build
registryv1 uses an image, skipping
Building registryv2...
Step 0 : FROM golang:1.15
Step 0 : FROM golang:1.16

...

Expand Down