Skip to content

Commit

Permalink
go version upgrade for CVE (#56)
Browse files Browse the repository at this point in the history
* go version upgrade for CVE

* go cve upgrade
  • Loading branch information
abhay084 authored Jul 18, 2023
1 parent 77d2390 commit 5a9aa61
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
18 changes: 9 additions & 9 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ steps:
- name: build
# there is an issue in golang 1.17.7-alpine3.15 -- with make files so using 1.17.3 here
# https://gitlab.alpinelinux.org/alpine/aports/-/issues/12396
image: golang:1.19-alpine3.16
image: golang:1.20-alpine3.17
commands:
- apk add --update make git
- make drone-cache
Expand All @@ -48,7 +48,7 @@ steps:
# - golangci-lint run --timeout 500s --new-from-rev=HEAD~

- name: test
image: golang:1.19-alpine3.16
image: golang:1.20-alpine3.17
commands:
- go test -mod=vendor -short -cover -tags=integration ./...
environment:
Expand Down Expand Up @@ -263,15 +263,15 @@ platform:
steps:
- name: build-push
pull: always
image: golang:1.19
image: golang:1.20
commands:
- 'go build -v -ldflags "-X main.build=${DRONE_BUILD_NUMBER}" -a -o release/linux/amd64/drone-cache'
environment:
CGO_ENABLED: 0
GO111MODULE: on
- name: build-tag
pull: always
image: golang:1.19
image: golang:1.20
commands:
- 'go build -v -ldflags "-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}" -a -o release/linux/amd64/drone-cache'
environment:
Expand Down Expand Up @@ -318,15 +318,15 @@ platform:
steps:
- name: build-push
pull: always
image: golang:1.19
image: golang:1.20
commands:
- 'go build -v -ldflags "-X main.build=${DRONE_BUILD_NUMBER}" -a -o release/linux/arm64/drone-cache'
environment:
CGO_ENABLED: 0
GO111MODULE: on
- name: build-tag
pull: always
image: golang:1.19
image: golang:1.20
commands:
- 'go build -v -ldflags "-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}" -a -o release/linux/arm64/drone-cache'
environment:
Expand Down Expand Up @@ -372,7 +372,7 @@ platform:

steps:
- name: build
image: golang:1.19
image: golang:1.20
commands:
- echo $env:DRONE_SEMVER_SHORT
- go build -o release/windows/amd64/drone-cache.exe
Expand Down Expand Up @@ -419,7 +419,7 @@ platform:

steps:
- name: build
image: golang:1.19
image: golang:1.20
commands:
- echo $env:DRONE_SEMVER_SHORT
- go build -o release/windows/amd64/drone-cache.exe
Expand Down Expand Up @@ -495,7 +495,7 @@ pool:

steps:
- name: build
image: golang:1.19
image: golang:1.20
commands:
- GOOS=linux GOARCH=amd64 go build -ldflags "-s -w -X main.version=${DRONE_TAG##v}" -o release/plugin-linux-amd64
- GOOS=linux GOARCH=arm64 go build -ldflags "-s -w -X main.version=${DRONE_TAG##v}" -o release/plugin-linux-arm64
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile.linux.amd64
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.17.3-alpine3.13 AS builder
FROM golang:1.20-alpine3.17 AS builder
RUN apk add --update --no-cache ca-certificates tzdata && update-ca-certificates

FROM scratch as runner
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile.linux.arm64
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.17.3-alpine3.13 AS builder
FROM golang:1.20-alpine3.17 AS builder
RUN apk add --update --no-cache ca-certificates tzdata && update-ca-certificates

FROM scratch as runner
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ require (
gopkg.in/yaml.v2 v2.4.0 // indirect
)

go 1.19
go 1.20

0 comments on commit 5a9aa61

Please sign in to comment.