Skip to content
This repository was archived by the owner on Jul 18, 2024. It is now read-only.

Commit a96b857

Browse files
committed
#patch: bump go version
1 parent 91413ee commit a96b857

File tree

8 files changed

+71
-39
lines changed

8 files changed

+71
-39
lines changed

.github/workflows/release.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,14 @@ jobs:
1313
uses: actions/checkout@v2
1414
- name: Unshallow
1515
run: git fetch --prune --unshallow
16-
- name: Set up Go
16+
- id: vars
17+
run: |
18+
echo ::set-output name=go_version::$(curl -s https://raw.githubusercontent.com/actions/go-versions/main/versions-manifest.json | grep -oE '"version": "[0-9]{1}.[0-9]{1,}(.[0-9]{1,})?"' | head -1 | cut -d':' -f2 | sed 's/ //g; s/"//g')
19+
echo "Using Go version ${{ steps.vars.outputs.go_version }}"
20+
- name: Install Go
1721
uses: actions/setup-go@v2
22+
with:
23+
go-version: ${{ steps.vars.outputs.go_version }}
1824
- name: Run GoReleaser
1925
uses: goreleaser/goreleaser-action@v2
2026
with:

.github/workflows/test.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,14 @@ jobs:
77
test:
88
runs-on: ubuntu-latest
99
steps:
10+
- id: vars
11+
run: |
12+
echo ::set-output name=go_version::$(curl -s https://raw.githubusercontent.com/actions/go-versions/main/versions-manifest.json | grep -oE '"version": "[0-9]{1}.[0-9]{1,}(.[0-9]{1,})?"' | head -1 | cut -d':' -f2 | sed 's/ //g; s/"//g')
13+
echo "Using Go version ${{ steps.vars.outputs.go_version }}"
1014
- name: Install Go
1115
uses: actions/setup-go@v2
16+
with:
17+
go-version: ${{ steps.vars.outputs.go_version }}
1218
- name: Checkout code
1319
uses: actions/checkout@v2
1420
- name: Test
@@ -23,4 +29,4 @@ jobs:
2329
- name: golangci-lint
2430
uses: golangci/golangci-lint-action@v2
2531
with:
26-
version: v1.32
32+
version: v1.33

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ GOCLEAN=$(GOCMD) clean
44
GORUN=$(GOCMD) run
55
PROJECT=circa10a/k8s-label-rules-webhook
66
BINARY=webhook
7-
VERSION=0.2.8
8-
GOBUILDFLAGS=-ldflags="-s -w -X main.Version=$(VERSION)"
7+
VERSION=0.2.9
8+
GOBUILDFLAGS=-ldflags="-s -w"
99

1010
# First target for travis ci
1111
test: export GIN_MODE=release

api/docs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ type swaggerInfo struct {
234234

235235
// SwaggerInfo holds exported Swagger Info so clients can modify it
236236
var SwaggerInfo = swaggerInfo{
237-
Version: "0.2.8",
237+
Version: "0.2.9",
238238
Host: "",
239239
BasePath: "",
240240
Schemes: []string{},

api/swagger.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"name": "MIT",
1212
"url": "https://github.com/circa10a/k8s-label-rules-webhook/blob/master/LICENSE"
1313
},
14-
"version": "0.2.8"
14+
"version": "0.2.9"
1515
},
1616
"paths": {
1717
"/": {

go.mod

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,36 +9,36 @@ require (
99
github.com/fatih/structs v1.1.0 // indirect
1010
github.com/gavv/httpexpect v2.0.0+incompatible
1111
github.com/gin-gonic/gin v1.6.3
12-
github.com/go-openapi/spec v0.19.12 // indirect
12+
github.com/go-openapi/spec v0.20.0 // indirect
1313
github.com/go-playground/validator/v10 v10.4.1 // indirect
1414
github.com/google/go-querystring v1.0.0 // indirect
1515
github.com/gorilla/websocket v1.4.1 // indirect
1616
github.com/imkira/go-interpol v1.1.0 // indirect
1717
github.com/k0kubun/colorstring v0.0.0-20150214042306-9440f1994b88 // indirect
18-
github.com/mailru/easyjson v0.7.6 // indirect
1918
github.com/mattn/go-colorable v0.1.6 // indirect
2019
github.com/moul/http2curl v1.0.0 // indirect
2120
github.com/onsi/ginkgo v1.12.0 // indirect
2221
github.com/onsi/gomega v1.9.0 // indirect
2322
github.com/prometheus/client_golang v1.8.0 // indirect
23+
github.com/prometheus/common v0.15.0 // indirect
2424
github.com/sergi/go-diff v1.0.0 // indirect
2525
github.com/sirupsen/logrus v1.7.0
2626
github.com/stretchr/testify v1.6.1
2727
github.com/swaggo/files v0.0.0-20190704085106-630677cd5c14
2828
github.com/swaggo/gin-swagger v1.3.0
29-
github.com/swaggo/swag v1.6.9
29+
github.com/swaggo/swag v1.7.0
30+
github.com/ugorji/go v1.2.1 // indirect
3031
github.com/valyala/fasthttp v1.7.0 // indirect
3132
github.com/xeipuuv/gojsonschema v1.2.0 // indirect
3233
github.com/yalp/jsonpath v0.0.0-20180802001716-5cc68e5049a0 // indirect
3334
github.com/yudai/gojsondiff v1.0.0 // indirect
3435
github.com/yudai/golcs v0.0.0-20170316035057-ecda9a501e82 // indirect
3536
github.com/yudai/pp v2.0.1+incompatible // indirect
3637
github.com/zsais/go-gin-prometheus v0.1.0
37-
golang.org/x/crypto v0.0.0-20201016220609-9e8e0b390897 // indirect
38-
golang.org/x/net v0.0.0-20201031054903-ff519b6c9102 // indirect
39-
golang.org/x/sys v0.0.0-20201107080550-4d91cf3a1aaf // indirect
40-
golang.org/x/text v0.3.4 // indirect
41-
golang.org/x/tools v0.0.0-20201105220310-78b158585360 // indirect
38+
golang.org/x/crypto v0.0.0-20201208171446-5f87f3452ae9 // indirect
39+
golang.org/x/net v0.0.0-20201209123823-ac852fbbde11 // indirect
40+
golang.org/x/sys v0.0.0-20201211090839-8ad439b19e0f // indirect
41+
golang.org/x/tools v0.0.0-20201211185031-d93e913c1a58 // indirect
4242
google.golang.org/protobuf v1.25.0 // indirect
43-
gopkg.in/yaml.v2 v2.3.0
43+
gopkg.in/yaml.v2 v2.4.0
4444
)

0 commit comments

Comments
 (0)