diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index d7daf0a..cdaa8a5 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -9,7 +9,7 @@ jobs: steps: - uses: actions/setup-go@v5 with: - go-version: 1.19 + go-version: 1.21 - uses: actions/checkout@v4 - name: tests run: | diff --git a/Dockerfile b/Dockerfile index fdc4a8a..7e213cb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,12 +12,12 @@ # See the License for the specific language governing permissions and # limitations under the License. -FROM golang:1.16-alpine +FROM golang:1.21-alpine -RUN apk add --no-cache curl git && rm -rf /var/cache/apk/* +RUN apk add --no-cache curl git make && rm -rf /var/cache/apk/* WORKDIR /go/src/github.com/etcd-io/auger ADD . /go/src/github.com/etcd-io/auger -RUN go get github.com/etcd-io/auger && chmod +x /go/bin/auger +RUN make build -ENTRYPOINT ["/go/bin/auger"] +ENTRYPOINT ["build/auger"] diff --git a/Makefile b/Makefile index 89c8965..480e820 100644 --- a/Makefile +++ b/Makefile @@ -15,7 +15,7 @@ NAME ?= auger PKG ?= github.com/etcd-io/$(NAME) -GO_VERSION ?= 1.20.5 +GO_VERSION ?= 1.21.8 GOOS ?= linux GOARCH ?= amd64 TEMP_DIR := $(shell mktemp -d) diff --git a/go.mod b/go.mod index d5971ea..7df38ab 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/etcd-io/auger -go 1.19 +go 1.21 require ( github.com/coreos/bbolt v1.3.1-coreos.3 diff --git a/go.sum b/go.sum index 498baba..9d05f37 100644 --- a/go.sum +++ b/go.sum @@ -15,6 +15,7 @@ github.com/golang/glog v1.2.0/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwm github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek= github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps= github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= +github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= github.com/google/gofuzz v1.2.0 h1:xRy4A+RhZaiKjJ1bPfwQ8sedCA+YS2YcCHW6ec7JMi0= github.com/google/gofuzz v1.2.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg=