Skip to content

Commit

Permalink
Update Go version to 1.16 (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucacome committed Feb 23, 2021
1 parent 056c062 commit 1211fb6
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ on:

env:
DOCKER_BUILDKIT: 1
GOLANG_VERSION: 1.15
GOLANG_VERSION: 1.16

jobs:

binary:
name: Build Binary
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04
steps:
- name: Checkout Repository
uses: actions/checkout@v2
Expand All @@ -48,7 +48,7 @@ jobs:

unit-tests:
name: Unit Tests
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04
steps:
- name: Checkout Repository
uses: actions/checkout@v2
Expand All @@ -61,7 +61,7 @@ jobs:

build:
name: Build Image
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04
needs: [binary, unit-tests]
steps:
- name: Checkout Repository
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/fossa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ defaults:
env:
FOSSA_VER: 1.1.3
FOSSA_URL: https://github.com/fossas/fossa-cli/releases/download
GOLANG_VERSION: 1.15
GOLANG_VERSION: 1.16

jobs:

scan:
name: Fossa
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04
steps:
- name: Checkout Repository
uses: actions/checkout@v2
Expand All @@ -42,7 +42,7 @@ jobs:

notify:
name: Notify
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04
needs: scan
if: always()
steps:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ on:

jobs:
update_release_draft:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- uses: release-drafter/release-drafter@v5.14.0
- uses: release-drafter/release-drafter@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4 changes: 2 additions & 2 deletions build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ ARG CONTAINER_VERSION=ubuntu:groovy
ARG OS_TYPE=deb_based
ARG PACKAGE_VERSION=0.4-1

FROM golang:1.15-alpine AS builder
FROM golang:1.16-alpine AS builder
WORKDIR /go/src/github.com/nginxinc/nginx-asg-sync/cmd/sync
COPY . /go/src/github.com/nginxinc/nginx-asg-sync/

RUN CGO_ENABLED=0 GOFLAGS='-mod=vendor' go build -installsuffix cgo -o /nginx-asg-sync
RUN CGO_ENABLED=0 GO111MODULE=on GOFLAGS='-mod=vendor' go build -installsuffix cgo -o /nginx-asg-sync

#---------------------------------------------------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/nginxinc/nginx-asg-sync

go 1.15
go 1.16

require (
github.com/Azure/azure-sdk-for-go v51.3.0+incompatible
Expand Down

0 comments on commit 1211fb6

Please sign in to comment.