diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index 6f2e55a76..34ee7c71d 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -25,7 +25,7 @@ jobs: - uses: actions/setup-go@v4 with: - go-version: 1.19 + go-version: 1.21 cache: false # the golangci-lint action already caches for us (https://github.com/golangci/golangci-lint-action#performance) - name: golangci-lint diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index 8fcd9c59f..7664bcd7c 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -24,7 +24,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v4 with: - go-version: 1.19 + go-version: 1.21 cache: true - name: Run all integration tests. diff --git a/.github/workflows/sims.yml b/.github/workflows/sims.yml index afa2c6df0..fa25234ac 100644 --- a/.github/workflows/sims.yml +++ b/.github/workflows/sims.yml @@ -11,7 +11,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v4 with: - go-version: 1.19 + go-version: 1.21 cache: true - uses: actions/cache@v3 with: @@ -33,7 +33,7 @@ jobs: go.sum - uses: actions/setup-go@v4 with: - go-version: 1.19 + go-version: 1.21 cache: true if: env.GIT_DIFF - uses: actions/cache@v3 diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index c91bf48af..c1cd2d2d2 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -18,7 +18,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v4 with: - go-version: 1.19 + go-version: 1.21 cache: true - name: Run all unit tests. @@ -30,9 +30,9 @@ jobs: - uses: actions/checkout@v4 - name: Set up Go - uses: actions/setup-go@v4 + uses: actions/setup-go@v5 with: - go-version: 1.19 + go-version: 1.21 - name: Build the nibid binary run: make build diff --git a/Dockerfile b/Dockerfile index 03afeba75..f97963d7e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.19 AS builder +FROM golang:1.21 AS builder WORKDIR /nibiru diff --git a/contrib/docker/chaosnet.Dockerfile b/contrib/docker/chaosnet.Dockerfile index 943c0a4a2..b08b1362a 100644 --- a/contrib/docker/chaosnet.Dockerfile +++ b/contrib/docker/chaosnet.Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.19 AS builder +FROM golang:1.21 AS builder WORKDIR /nibiru diff --git a/contrib/docker/goreleaser.Dockerfile b/contrib/docker/goreleaser.Dockerfile index 2b1e9b7d1..fef40b37d 100644 --- a/contrib/docker/goreleaser.Dockerfile +++ b/contrib/docker/goreleaser.Dockerfile @@ -1,7 +1,7 @@ -FROM golang:1.19 AS builder +FROM golang:1.21 AS builder WORKDIR /root -COPY dist/ /root/ +COPY ./dist/ /root/ ARG TARGETARCH RUN if [ "${TARGETARCH}" = "arm64" ]; then \ @@ -10,7 +10,7 @@ RUN if [ "${TARGETARCH}" = "arm64" ]; then \ cp linux_linux_amd64_v1/nibid /root/nibid; \ fi -FROM alpine +FROM alpine:latest WORKDIR /root RUN apk --no-cache add ca-certificates diff --git a/contrib/make/release.mk b/contrib/make/release.mk index af71d17eb..8b7289af0 100644 --- a/contrib/make/release.mk +++ b/contrib/make/release.mk @@ -3,7 +3,7 @@ ############################################################################### PACKAGE_NAME := github.com/NibiruChain/nibiru -GOLANG_CROSS_VERSION ?= v1.19.4 +GOLANG_CROSS_VERSION ?= v1.21.5 release: docker run \ @@ -24,6 +24,5 @@ release-snapshot: -v "$(CURDIR)":/go/src/$(PACKAGE_NAME) \ -w /go/src/$(PACKAGE_NAME) \ -e CGO_ENABLED=1 \ - -e GITHUB_TOKEN=${GITHUB_TOKEN} \ goreleaser/goreleaser-cross:${GOLANG_CROSS_VERSION} \ - release --rm-dist --snapshot + release --clean --snapshot