Skip to content

Commit

Permalink
chore: update golang to 1.23
Browse files Browse the repository at this point in the history
  • Loading branch information
tobybellwood committed Nov 14, 2024
1 parent 58f15bc commit d4cf575
Show file tree
Hide file tree
Showing 8 changed files with 1,274 additions and 53 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
strategy:
matrix:
goversion:
- 1.21
- 1.23
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -31,11 +31,11 @@ jobs:

goreleaser:
needs: test-suite
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
strategy:
matrix:
goversion:
- 1.21
- 1.23
steps:
-
name: Checkout
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lagoon-cli.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
strategy:
matrix:
goversion:
- 1.21
- 1.23
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.21
go-version: 1.23
- name: Build CLI
run: |
go install go.uber.org/mock/[email protected]
Expand Down
4 changes: 2 additions & 2 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ release:
brew install lagoon
```
### Running from released binaries
Alternatively, you may install by downloading one of the pre-compiled binaries (replace `amd64` with `arm64` for ARM-compatible binaries)
Alternatively, you may install by downloading one of the pre-compiled binaries
```
# MacOS
sudo curl -L "https://github.com/{{ .Env.LOCAL_ORG }}/lagoon-cli/releases/download/v{{.Version}}/lagoon-cli-v{{.Version}}-darwin-amd64" -o /usr/local/bin/lagoon && sudo chmod +x /usr/local/bin/lagoon
sudo curl -L "https://github.com/{{ .Env.LOCAL_ORG }}/lagoon-cli/releases/download/v{{.Version}}/lagoon-cli-v{{.Version}}-darwin-arm64" -o /usr/local/bin/lagoon && sudo chmod +x /usr/local/bin/lagoon
# Linux
sudo curl -L "https://github.com/{{ .Env.LOCAL_ORG }}/lagoon-cli/releases/download/v{{.Version}}/lagoon-cli-v{{.Version}}-linux-amd64" -o /usr/local/bin/lagoon && sudo chmod +x /usr/local/bin/lagoon
```
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.21-alpine AS build
FROM golang:1.23-alpine3.20 AS build

WORKDIR /go/src/github.com/uselagoon/lagoon-cli/
COPY . .
Expand All @@ -14,7 +14,7 @@ RUN VERSION=${VERSION:-"$(echo $(git describe --abbrev=0 --tags)+$(git rev-parse
-X github.com/uselagoon/lagoon-cli/cmd.lagoonCLIBuild=$BUILD \
-X github.com/uselagoon/lagoon-cli/cmd.lagoonCLIBuildGoVersion=go$GOLANG_VERSION" -o lagoon .

FROM alpine:3
FROM alpine:3.20

WORKDIR /root/
COPY --from=build /go/src/github.com/uselagoon/lagoon-cli/lagoon /lagoon
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ PKGMODPATH=$(DIR)/vendor
VERSION=$(shell echo $(shell git describe --abbrev=0 --tags)+$(shell git rev-parse --short=8 HEAD))
BUILD=$(shell date +%FT%T%z)

DOCKER_GO_VER=1.21
DOCKER_GO_VER=1.23
GO_VER=$(shell go version)
LDFLAGS=-w -s -X ${PKG}/cmd.lagoonCLIVersion=${VERSION} -X ${PKG}/cmd.lagoonCLIBuild=${BUILD}

Expand Down
313 changes: 295 additions & 18 deletions go.mod

Large diffs are not rendered by default.

994 changes: 969 additions & 25 deletions go.sum

Large diffs are not rendered by default.

0 comments on commit d4cf575

Please sign in to comment.