CI: use go 1.15 by default now that it is released

This commit is contained in:
Nicola Murino 2020-08-12 16:42:38 +02:00
parent aa0ed5dbd0
commit fe857dcb1b
3 changed files with 8 additions and 5 deletions

View file

@ -11,7 +11,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
go: [1.14]
go: [1.15]
os: [ubuntu-latest, macos-latest]
upload-coverage: [true]
include:
@ -19,6 +19,9 @@ jobs:
os: ubuntu-latest
upload-coverage: false
- go: 1.14
os: ubuntu-latest
upload-coverage: false
- go: 1.15
os: windows-latest
upload-coverage: false
@ -142,7 +145,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.14
go-version: 1.15
- name: Build
run: go build -ldflags "-s -w -X github.com/drakkan/sftpgo/version.commit=`git describe --always --dirty` -X github.com/drakkan/sftpgo/version.date=`date -u +%FT%TZ`" -o sftpgo
@ -179,4 +182,4 @@ jobs:
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v1
with:
version: v1.29
version: v1.30

View file

@ -5,7 +5,7 @@ on:
tags: 'v*'
env:
GO_VERSION: 1.14
GO_VERSION: 1.15
jobs:
create-release:

View file

@ -26,7 +26,7 @@ If the hook is an HTTP URL then it will be invoked as HTTP POST. The request bod
If authentication succeed the HTTP response code must be 200 and the response body a valid SFTPGo user serialized as JSON. If the authentication fails the HTTP response code must be != 200 or the response body must be empty.
If the authentication succeeds, the user will be automatically added/updated inside the defined data provider. Actions defined for users added/updated will not be executed in this case.
The external hook should check authentication only. If there are login restrictions such as user disabled, expired, or login allowed only from specific IP addresses, it is enough to populate the matching user fields, and these conditions will be checked in the same way as for built-in users.
The program hook must finish within 30 seconds, the HTTP hook timeout will use the global configuration for HTTP clients.
This method is slower than built-in authentication, but it's very flexible as anyone can easily write his own authentication hooks.