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

This commit is contained in:
2023-06-06 18:02:26 -07:00
parent 4d1ba7c425
commit 977e11141c
4 changed files with 12 additions and 4 deletions

View File

@@ -1,10 +1,11 @@
---
kind: pipeline
type: kubernetes
name: default
steps:
- name: test
image: golang:1.19.5
image: golang:1.20.5
volumes:
- name: deps
path: /go
@@ -28,3 +29,8 @@ steps:
from_secret: harbor_username
password:
from_secret: harbor_password
---
kind: signature
hmac: 004f812ff29a1e2546eeafbf449c36c901f69b5f2591f83152eebde7258453fd
...

View File

@@ -1,11 +1,11 @@
FROM golang:1.19.5-alpine AS build
FROM golang:1.20.5-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.17.1
FROM alpine:3.18
USER root
RUN apk --no-cache add ca-certificates

2
go.mod
View File

@@ -6,5 +6,5 @@ require github.com/oschwald/geoip2-golang v1.8.0
require (
github.com/oschwald/maxminddb-golang v1.10.0 // indirect
golang.org/x/sys v0.4.0 // indirect
golang.org/x/sys v0.8.0 // indirect
)

2
go.sum
View File

@@ -7,4 +7,6 @@ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZb
github.com/stretchr/testify v1.8.0 h1:pSgiaMZlXftHpm5L7V1+rVB+AZJydKsMxsQBIJw4PKk=
golang.org/x/sys v0.4.0 h1:Zr2JFtRQNX3BCZ8YtxRE9hNJYC8J6I1MVbMg6owUp18=
golang.org/x/sys v0.4.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.8.0 h1:EBmGv8NaZBZTWvrbjNoL6HVt+IVy3QDQpJs7VRIw3tU=
golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=