Skip to content

Commit

Permalink
use Go 1.16 for CI and Docker images
Browse files Browse the repository at this point in the history
  • Loading branch information
drakkan committed Feb 21, 2021
1 parent 5da4f93 commit 41e1d9e
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 10 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
go: [1.15]
go: [1.16]
os: [ubuntu-latest, macos-latest]
upload-coverage: [true]
include:
#- go: 1.14
# os: ubuntu-latest
# upload-coverage: false
- go: 1.15
os: ubuntu-latest
upload-coverage: false
- go: 1.16
os: windows-latest
upload-coverage: false

Expand Down Expand Up @@ -85,6 +85,7 @@ jobs:
if: ${{ matrix.upload-coverage && startsWith(matrix.os, 'ubuntu-') }}
uses: crazy-max/ghaction-xgo@v1
with:
go_version: 1.16.x
dest: cross
prefix: sftpgo
targets: linux/arm64,linux/ppc64le
Expand Down Expand Up @@ -235,7 +236,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.15
go-version: 1.16

- 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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ jobs:
if: ${{ matrix.os == 'ubuntu-latest' }}
uses: crazy-max/ghaction-xgo@v1
with:
go-version: ${{ env.GO_VERSION }}
go_version: ${{ env.GO_VERSION }}
dest: cross
prefix: sftpgo
targets: linux/arm64,linux/ppc64le
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.15-buster as builder
FROM golang:1.16-buster as builder

ENV GOFLAGS="-mod=readonly"

Expand Down
4 changes: 2 additions & 2 deletions Dockerfile.alpine
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.15-alpine3.12 AS builder
FROM golang:1.16-alpine3.13 AS builder

ENV GOFLAGS="-mod=readonly"

Expand Down Expand Up @@ -26,7 +26,7 @@ RUN set -xe && \
go build $(if [ -n "${FEATURES}" ]; then echo "-tags ${FEATURES}"; fi) -ldflags "-s -w -X github.com/drakkan/sftpgo/version.commit=${COMMIT_SHA} -X github.com/drakkan/sftpgo/version.date=`date -u +%FT%TZ`" -v -o sftpgo


FROM alpine:3.12
FROM alpine:3.13

# Set to "true" to install the optional git and rsync dependencies
ARG INSTALL_OPTIONAL_PACKAGES=false
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ SFTPGo is developed and tested on Linux. After each commit, the code is automati

## Requirements

- Go 1.15 or higher as build only dependency.
- Go as build only dependency. We support the Go version(s) used in [continuous integration workflows](./tree/main/.github/workflows).
- A suitable SQL server to use as data provider: PostgreSQL 9.4+ or MySQL 5.6+ or SQLite 3.x.
- The SQL server is optional: you can choose to use an embedded bolt database as key/value store or an in memory data provider.

Expand Down

0 comments on commit 41e1d9e

Please sign in to comment.