Skip to content

Commit

Permalink
ci/go: bump Go version from 1.19 to 1.21 due to 1.19 support has alre…
Browse files Browse the repository at this point in the history
…ady ended
  • Loading branch information
ryo-yamaoka authored and zegl committed Dec 19, 2023
1 parent 7df9449 commit 307825a
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 10 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,22 @@ on: [push]
jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
go-version: ["1.19", "1.20", "1.21"]
os: [macos-latest, ubuntu-latest]

runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v3

with:
go-version: 1.19
go-version: ${{ matrix.go-version }}

- name: Build
run: go build -v ./...

- name: Test
run: go test -v ./...
run: go test -v ./...
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ RUN curl --location "https://github.com/kubernetes-sigs/kustomize/releases/downl
chmod +x kustomize && \
mv kustomize /usr/bin/kustomize

FROM golang:1.19-alpine as builder
FROM golang:1.21-alpine as builder
ARG TARGETARCH
ARG TARGETPLATFORM
WORKDIR /kube-score
Expand Down Expand Up @@ -67,12 +67,12 @@ COPY --from=builder /usr/bin/kube-score /usr/bin/kube-score

# Symlink to /kube-score for backwards compatibility (with kube-score v1.15.0 and earlier)
RUN ln -s /usr/bin/kube-score /kube-score

# Dry runs
RUN /kube-score version && \
/usr/bin/kube-score version && \
kube-score version && \
helm version && kustomize version

WORKDIR /project
ENTRYPOINT ["/kube-score"]
ENTRYPOINT ["/kube-score"]
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ spec:

## Building from source

`kube-score` requires [Go](https://golang.org/) `1.19` or later to build. Clone this repository, and then:
`kube-score` requires [Go](https://golang.org/) `1.21` or later to build. Clone this repository, and then:

```bash
# Build the project
Expand All @@ -205,7 +205,7 @@ Do you want to help out? Take a look at the [Contributing Guidelines](./.github/

| Project | Version |
|---------------------|---------|
| go.dev | ^1.19 |
| go.dev | ^1.21 |

## Made by

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ require (
sigs.k8s.io/yaml v1.3.0 // indirect
)

go 1.19
go 1.21

0 comments on commit 307825a

Please sign in to comment.