Update base image and Go
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-12-22 17:19:10 -08:00
parent 6a7628a84e
commit 14edfaf0e9
3 changed files with 6 additions and 4 deletions

View File

@@ -5,7 +5,7 @@ name: default
steps:
- name: test
image: golang:1.20.5
image: golang:1.23.4
volumes:
- name: deps
path: /go
@@ -31,6 +31,6 @@ steps:
from_secret: harbor_password
---
kind: signature
hmac: 004f812ff29a1e2546eeafbf449c36c901f69b5f2591f83152eebde7258453fd
hmac: d92e5a575088ed17ad15dbf7bf34f79f1d6b61c09d8b05fc7aab58f94c011e01
...

View File

@@ -1,11 +1,11 @@
FROM golang:1.20.5-alpine AS build
FROM golang:1.23.4-alpine AS build
RUN apk --no-cache add git
WORKDIR /go/src/github.com/abh/geoipapi
ADD . /go/src/github.com/abh/geoipapi
RUN go install -v ./...
FROM alpine:3.18
FROM alpine:3.21
USER root
RUN apk --no-cache add ca-certificates
RUN apk --no-cache upgrade

2
go.mod
View File

@@ -2,6 +2,8 @@ module go.ntppool.org/geoipapi
go 1.23
toolchain go1.24rc1
require (
github.com/oschwald/geoip2-golang v1.11.0
go.ntppool.org/common v0.3.0