Skip to content

Commit

Permalink
Merge pull request #138 from dntosas/feat/golang-1.20
Browse files Browse the repository at this point in the history
[golang] Bump to version 1.20
  • Loading branch information
dntosas authored Feb 26, 2023
2 parents 8412811 + 7b13169 commit 08ffb3c
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Set up Go
uses: actions/[email protected]
with:
go-version: 1.19
go-version: '1.20.1'

- name: Checkout code
uses: actions/[email protected]
Expand All @@ -31,7 +31,7 @@ jobs:
- name: Run go lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.50.1
version: v1.51.1
args: --timeout 5m --enable revive,gofmt,exportloopref --exclude-use-default=false --modules-download-mode=vendor --build-tags integration

- name: Run go test
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/go-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: Set up Go
uses: actions/[email protected]
with:
go-version: 1.19
go-version: '1.20.1'

- name: Checkout code
uses: actions/[email protected]
Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ USER = $(shell id -u)
GROUP = $(shell id -g)
PROJECT = "capi2argo-cluster-operator"
GOBUILD_OPTS = -ldflags="-s -w -X ${PROJECT}/cmd.Version=${VERSION} -X ${PROJECT}/cmd.CommitHash=${COMMIT}"
GO_IMAGE = "golang:1.19-alpine"
GO_IMAGE_CI = "golangci/golangci-lint:v1.50.1"
GO_IMAGE = "golang:1.20-alpine"
GO_IMAGE_CI = "golangci/golangci-lint:v1.51.1"
DISTROLESS_IMAGE = "gcr.io/distroless/static:nonroot"
IMAGE_TAG_BASE ?= "ghcr.io/dntosas/${PROJECT}"

Expand Down Expand Up @@ -39,7 +39,7 @@ vet: ## Run go vet against code.

.PHONY: lint
lint: ## Run golangci-lint against code.
golangci-lint run --enable revive,gofmt,exportloopref --exclude-use-default=false --modules-download-mode=vendor --build-tags integration
@docker run --rm --volume "${PWD}:/app" -w /app "${GO_IMAGE_CI}" golangci-lint run --enable revive,gofmt,exportloopref --exclude-use-default=false --modules-download-mode=vendor --build-tags integration

.PHONY: test
test: envtest ## Run go tests against code.
Expand Down
2 changes: 1 addition & 1 deletion charts/capi2argo-cluster-operator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ maintainers:
name: capi2argo-cluster-operator
sources:
- https://github.com/dntosas/capi2argo-cluster-operator
version: 0.1.9
version: 0.1.10
dependencies:
- name: common
repository: "https://charts.bitnami.com/bitnami"
Expand Down
2 changes: 1 addition & 1 deletion charts/capi2argo-cluster-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ replicaCount: 1
image:
registry: ghcr.io
repository: dntosas/capi2argo-cluster-operator
tag: v0.1.9
tag: v0.1.10
pullPolicy: IfNotPresent
pullSecrets: []

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/dntosas/capi2argo-cluster-operator

go 1.19
go 1.20

require (
github.com/go-logr/logr v1.2.3
Expand Down

0 comments on commit 08ffb3c

Please sign in to comment.