ci,dockerfile: bump to go1.21
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
2906fb1b88
commit
131e84bd17
16
.drone.yml
16
.drone.yml
|
@ -32,7 +32,7 @@ steps:
|
||||||
|
|
||||||
- name: golang
|
- name: golang
|
||||||
pull: always
|
pull: always
|
||||||
image: docker.io/library/golang:1.20.5-alpine3.18
|
image: docker.io/library/golang:1.21.0-alpine3.18
|
||||||
commands:
|
commands:
|
||||||
- uname -r
|
- uname -r
|
||||||
- go version
|
- go version
|
||||||
|
@ -73,7 +73,7 @@ steps:
|
||||||
- hugo --gc=true --minify
|
- hugo --gc=true --minify
|
||||||
|
|
||||||
- name: go fmt
|
- name: go fmt
|
||||||
image: docker.io/library/golang:1.20.5-alpine3.18
|
image: docker.io/library/golang:1.21.0-alpine3.18
|
||||||
volumes:
|
volumes:
|
||||||
- name: gopath
|
- name: gopath
|
||||||
path: /go
|
path: /go
|
||||||
|
@ -83,7 +83,7 @@ steps:
|
||||||
- go fmt
|
- go fmt
|
||||||
|
|
||||||
- name: go vet
|
- name: go vet
|
||||||
image: docker.io/library/golang:1.20.5-alpine3.18
|
image: docker.io/library/golang:1.21.--alpine3.18
|
||||||
volumes:
|
volumes:
|
||||||
- name: gopath
|
- name: gopath
|
||||||
path: /go
|
path: /go
|
||||||
|
@ -94,7 +94,7 @@ steps:
|
||||||
|
|
||||||
- name: go build
|
- name: go build
|
||||||
pull: if-not-exists
|
pull: if-not-exists
|
||||||
image: docker.io/library/golang:1.20.5-alpine3.18
|
image: docker.io/library/golang:1.21.0-alpine3.18
|
||||||
volumes:
|
volumes:
|
||||||
- name: gopath
|
- name: gopath
|
||||||
path: /go
|
path: /go
|
||||||
|
@ -295,7 +295,7 @@ steps:
|
||||||
- docker-compose -f docker-compose.yml config -q
|
- docker-compose -f docker-compose.yml config -q
|
||||||
|
|
||||||
- name: go fmt
|
- name: go fmt
|
||||||
image: docker.io/library/golang:1.20.5-alpine3.18
|
image: docker.io/library/golang:1.21.0-alpine3.18
|
||||||
volumes:
|
volumes:
|
||||||
- name: gopath
|
- name: gopath
|
||||||
path: /go
|
path: /go
|
||||||
|
@ -305,7 +305,7 @@ steps:
|
||||||
- go fmt
|
- go fmt
|
||||||
|
|
||||||
- name: go vet
|
- name: go vet
|
||||||
image: docker.io/library/golang:1.20.5-alpine3.18
|
image: docker.io/library/golang:1.21.0-alpine3.18
|
||||||
volumes:
|
volumes:
|
||||||
- name: gopath
|
- name: gopath
|
||||||
path: /go
|
path: /go
|
||||||
|
@ -317,7 +317,7 @@ steps:
|
||||||
- go vet
|
- go vet
|
||||||
|
|
||||||
- name: go build
|
- name: go build
|
||||||
image: docker.io/library/golang:1.20.5-alpine3.18
|
image: docker.io/library/golang:1.21.0-alpine3.18
|
||||||
volumes:
|
volumes:
|
||||||
- name: gopath
|
- name: gopath
|
||||||
path: /go
|
path: /go
|
||||||
|
@ -466,6 +466,6 @@ steps:
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: signature
|
kind: signature
|
||||||
hmac: bba585fcc25da54d977b4a233c988f5888f59ef91f51d893aeaefb7cb62c1379
|
hmac: 4e178bb873563499a7b3b00fdb372acc239dedfb8b151858598a29778349f44c
|
||||||
|
|
||||||
...
|
...
|
||||||
|
|
|
@ -20,7 +20,7 @@ WORKDIR /homepage
|
||||||
RUN hugo version && \
|
RUN hugo version && \
|
||||||
hugo --minify --gc=true --cleanDestinationDir
|
hugo --minify --gc=true --cleanDestinationDir
|
||||||
|
|
||||||
FROM docker.io/library/golang:1.20.5-alpine3.18 AS gobuild
|
FROM docker.io/library/golang:1.21.0-alpine3.18 AS gobuild
|
||||||
COPY --from=hugobuild /homepage/ /homepage/
|
COPY --from=hugobuild /homepage/ /homepage/
|
||||||
|
|
||||||
WORKDIR /homepage
|
WORKDIR /homepage
|
||||||
|
|
Loading…
Reference in New Issue