Skip to content

Commit

Permalink
Publish binary using go v1.22 (#4)
Browse files Browse the repository at this point in the history
- Remove unused build/expose instructions in the Dockerfile
- Run the test suite using go 1.22
  • Loading branch information
lescactus committed May 2, 2024
1 parent 41abff3 commit edd4964
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 11 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
build:
strategy:
matrix:
version: ["1.16", "1.17", "1.18", "1.19", "1.20", "1.21"]
version: ["1.16", "1.17", "1.18", "1.19", "1.20", "1.21", "1.22"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -30,7 +30,7 @@ jobs:
test:
strategy:
matrix:
version: ["1.16", "1.17", "1.18", "1.19", "1.20", "1.21"]
version: ["1.16", "1.17", "1.18", "1.19", "1.20", "1.21", "1.22"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -47,7 +47,7 @@ jobs:
race-condition:
strategy:
matrix:
version: ["1.16", "1.17", "1.18", "1.19", "1.20", "1.21"]
version: ["1.16", "1.17", "1.18", "1.19", "1.20", "1.21", "1.22"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.21"
go-version: "1.22"
cache: true

- name: Run GoReleaser
Expand Down
5 changes: 1 addition & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.21 as builder
FROM golang:1.22 as builder

WORKDIR /app

Expand All @@ -12,9 +12,6 @@ RUN CGO_ENABLED=0 go build -ldflags '-d -w -s' -o main

FROM scratch

COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=builder /app/main /

EXPOSE 8080

ENTRYPOINT ["/main"]
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ docker run \

### Requirements

* Golang 1.16 or higher
* Golang 1.15 or higher

### From source with go

You need a working [go](https://golang.org/doc/install) toolchain (It has been developped and tested with go >= 1.16). Refer to the official documentation for more information (or from your Linux/Mac/Windows distribution documentation to install it from your favorite package manager).
You need a working [go](https://golang.org/doc/install) toolchain (It has been developped and tested with go >= 1.15). Refer to the official documentation for more information (or from your Linux/Mac/Windows distribution documentation to install it from your favorite package manager).

```sh
# Clone this repository
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module lescactus/unix2dos-go

go 1.16
go 1.15

require github.com/spf13/cobra v1.8.0

0 comments on commit edd4964

Please sign in to comment.