Skip to content

Commit 304e7fb

Browse files
committed
Update go to 1.16
1 parent 056c062 commit 304e7fb

File tree

6 files changed

+13
-12
lines changed

6 files changed

+13
-12
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ on:
2121

2222
env:
2323
DOCKER_BUILDKIT: 1
24-
GOLANG_VERSION: 1.15
24+
GOLANG_VERSION: 1.16
2525

2626
jobs:
2727

2828
binary:
2929
name: Build Binary
30-
runs-on: ubuntu-18.04
30+
runs-on: ubuntu-20.04
3131
steps:
3232
- name: Checkout Repository
3333
uses: actions/checkout@v2
@@ -48,7 +48,7 @@ jobs:
4848

4949
unit-tests:
5050
name: Unit Tests
51-
runs-on: ubuntu-18.04
51+
runs-on: ubuntu-20.04
5252
steps:
5353
- name: Checkout Repository
5454
uses: actions/checkout@v2
@@ -61,7 +61,7 @@ jobs:
6161

6262
build:
6363
name: Build Image
64-
runs-on: ubuntu-18.04
64+
runs-on: ubuntu-20.04
6565
needs: [binary, unit-tests]
6666
steps:
6767
- name: Checkout Repository

.github/workflows/fossa.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ defaults:
1414
env:
1515
FOSSA_VER: 1.1.3
1616
FOSSA_URL: https://github.com/fossas/fossa-cli/releases/download
17-
GOLANG_VERSION: 1.15
17+
GOLANG_VERSION: 1.16
1818

1919
jobs:
2020

2121
scan:
2222
name: Fossa
23-
runs-on: ubuntu-18.04
23+
runs-on: ubuntu-20.04
2424
steps:
2525
- name: Checkout Repository
2626
uses: actions/checkout@v2
@@ -42,7 +42,7 @@ jobs:
4242

4343
notify:
4444
name: Notify
45-
runs-on: ubuntu-18.04
45+
runs-on: ubuntu-20.04
4646
needs: scan
4747
if: always()
4848
steps:

.github/workflows/release-drafter.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ on:
99

1010
jobs:
1111
update_release_draft:
12-
runs-on: ubuntu-latest
12+
runs-on: ubuntu-20.04
1313
steps:
14-
- uses: release-drafter/release-drafter@v5.14.0
14+
- uses: release-drafter/release-drafter@v5
1515
env:
1616
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

build/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ ARG CONTAINER_VERSION=ubuntu:groovy
22
ARG OS_TYPE=deb_based
33
ARG PACKAGE_VERSION=0.4-1
44

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

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

1111
#---------------------------------------------------------------------------------------------
1212

debian

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
build/package/debian/

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/nginxinc/nginx-asg-sync
22

3-
go 1.15
3+
go 1.16
44

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

0 commit comments

Comments
 (0)