Skip to content

Commit

Permalink
build with go1.16 (cesanta#301)
Browse files Browse the repository at this point in the history
  • Loading branch information
techknowlogick authored Mar 5, 2021
1 parent 6973036 commit 52bfc9b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docker-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: docker-nightly
on:
push:
branches:
- master
- main
pull_request:

jobs:
Expand All @@ -16,7 +16,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: "1.15.x"
go-version: "1.16.x"

- name: Checkout code
uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/go_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ jobs:
test:
strategy:
matrix:
go-version: [1.13.x, 1.14.x, 1.15.x]
go-version: [1.16.x]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,13 @@ Supported authentication methods:
* [Github Sign-In](docs/auth-methods.md#github)
* LDAP bind ([demo](https://github.com/kwk/docker-registry-setup))
* MongoDB user collection
* MySQL/MariaDB, PostgreSQL, SQLite database table
* [External program](https://github.com/cesanta/docker_auth/blob/master/examples/ext_auth.sh)

Supported authorization methods:
* Static ACL
* MongoDB-backed ACL
* MySQL/MariaDB, PostgreSQL, SQLite backed ACL
* External program

## Installation and Examples
Expand Down
6 changes: 3 additions & 3 deletions auth_server/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ COMPRESS_BINARY ?= false
CA_BUNDLE = /etc/ssl/certs/ca-certificates.crt
VERSION = $(shell cat version.txt)

BUILDER_IMAGE ?= golang:1.15-alpine3.12
BUILDER_IMAGE ?= golang:1.16-alpine3.13

.PHONY: %

all: build

deps:
go get -v github.com/go-bindata/go-bindata/...
go install github.com/go-bindata/go-bindata/go-bindata@latest

generate:
go generate \
Expand All @@ -33,7 +33,7 @@ build-release: ca-certificates.crt
apk update && apk add git make py3-pip && pip install GitPython && \
cd /src/auth_server && \
umask 0 && \
go get -u github.com/go-bindata/go-bindata/... && \
go install github.com/go-bindata/go-bindata/go-bindata@latest && \
make generate && \
CGO_ENABLED=0 go build -v --ldflags=--s"
@echo === Built version $$(cat version.txt) ===
Expand Down

0 comments on commit 52bfc9b

Please sign in to comment.