Skip to content

Commit 29b5b41

Browse files
authored
Update Go version to 1.16 (#160)
1 parent 465ad24 commit 29b5b41

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ on:
2323

2424
env:
2525
DOCKER_BUILDKIT: 1
26-
GOLANG_VERSION: 1.15
26+
GOLANG_VERSION: 1.16
2727

2828
jobs:
2929

@@ -73,9 +73,9 @@ jobs:
7373
name: Release Image
7474
runs-on: ubuntu-18.04
7575
needs: [build, unit-tests]
76-
if:
76+
if:
7777
github.repository == 'nginxinc/nginx-prometheus-exporter' &&
78-
github.event_name == 'create' &&
78+
github.event_name == 'create' &&
7979
contains(github.ref, 'refs/tags/')
8080
steps:
8181
- name: Checkout Repository
@@ -95,7 +95,7 @@ jobs:
9595
restore-keys: |
9696
${{ runner.os }}-buildx-
9797
- name: DockerHub Login
98-
uses: docker/login-action@v1
98+
uses: docker/login-action@v1
9999
with:
100100
username: ${{ secrets.DOCKER_USERNAME }}
101101
password: ${{ secrets.DOCKER_PASSWORD }}
@@ -125,8 +125,8 @@ jobs:
125125
echo "::set-output name=repo::$(echo ${GITHUB_REPOSITORY} | cut -d '/' -f 2)"
126126
- name: Send Notification
127127
uses: 8398a7/action-slack@v3
128-
if:
129-
steps.check.outputs.status == 'failure' ||
128+
if:
129+
steps.check.outputs.status == 'failure' ||
130130
steps.check.outputs.status == 'cancelled'
131131
with:
132132
status: custom
@@ -162,4 +162,4 @@ jobs:
162162
}
163163
env:
164164
GITHUB_TOKEN: ${{ github.token }}
165-
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}
165+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}

.github/workflows/fossa.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ defaults:
1515
env:
1616
FOSSA_VER: 1.1.0
1717
FOSSA_URL: https://github.com/fossas/fossa-cli/releases/download
18-
GOLANG_VERSION: 1.15
18+
GOLANG_VERSION: 1.16
1919

2020
jobs:
2121

@@ -87,4 +87,4 @@ jobs:
8787
}
8888
env:
8989
GITHUB_TOKEN: ${{ github.token }}
90-
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}
90+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}

build/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.15 as builder
1+
FROM golang:1.16 as builder
22
ARG VERSION
33
ARG GIT_COMMIT
44
WORKDIR /go/src/github.com/nginxinc/nginx-prometheus-exporter

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-prometheus-exporter
22

3-
go 1.15
3+
go 1.16
44

55
require (
66
github.com/nginxinc/nginx-plus-go-client v0.8.0

0 commit comments

Comments
 (0)