Skip to content

Commit 0371401

Browse files
authored
chore(deps): upgrade go version in dockerfile (#638)
- [x] fix warnings about case of `as` to `AS` in Dockerfile - `FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 1)` - [x] shorten go version in go.mod - [x] update Dockerfile Go version from 1.17 to 1.22 to match go.mod - [x] upgrade alipine/git image version to latest, current was 4 years old - -from alpine/git:v2.24.3 (4 years old) to alpine/git:v2.45.2 - [x] fix warning with linting - `WARN [config_reader] The configuration option 'run.skip-files' is deprecated, please use 'issues.exclude-files'` - [x] add .tool-versions (asdf) to .gitignore Signed-off-by: jmeridth <[email protected]>
1 parent 88c35a9 commit 0371401

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33
.vscode
44
.idea
55
coverage.out
6-
vendor/
6+
vendor/
7+
.tool-versions

.golangci.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
run:
2-
skip-files:
3-
- "pkg/diff/internal/fieldmanager/borrowed_.+\\.go$"
1+
issues:
2+
exclude-files:
3+
- "pkg/diff/internal/fieldmanager/borrowed_.*\\.go$"

Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.17 as builder
1+
FROM golang:1.22 AS builder
22

33
WORKDIR /src
44

@@ -12,5 +12,5 @@ COPY . .
1212
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-w -s" -o /dist/gitops ./agent
1313

1414

15-
FROM alpine/git:v2.24.3
15+
FROM alpine/git:v2.45.2
1616
COPY --from=builder /dist/gitops /usr/local/bin/gitops

0 commit comments

Comments
 (0)