mirror of
https://github.com/thegeeklab/wp-ansible.git
synced 2024-11-09 17:10:41 +00:00
chore: update to golang v1.21 (#169)
This commit is contained in:
parent
82fbd5ee2c
commit
004a6004ae
18
.drone.star
18
.drone.star
@ -31,7 +31,7 @@ def test(ctx):
|
|||||||
"steps": [
|
"steps": [
|
||||||
{
|
{
|
||||||
"name": "deps",
|
"name": "deps",
|
||||||
"image": "docker.io/golang:1.20",
|
"image": "docker.io/golang:1.21",
|
||||||
"commands": [
|
"commands": [
|
||||||
"make deps",
|
"make deps",
|
||||||
],
|
],
|
||||||
@ -44,7 +44,7 @@ def test(ctx):
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "generate",
|
"name": "generate",
|
||||||
"image": "docker.io/golang:1.20",
|
"image": "docker.io/golang:1.21",
|
||||||
"commands": [
|
"commands": [
|
||||||
"make generate",
|
"make generate",
|
||||||
],
|
],
|
||||||
@ -57,7 +57,7 @@ def test(ctx):
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "lint",
|
"name": "lint",
|
||||||
"image": "docker.io/golang:1.20",
|
"image": "docker.io/golang:1.21",
|
||||||
"commands": [
|
"commands": [
|
||||||
"make lint",
|
"make lint",
|
||||||
],
|
],
|
||||||
@ -70,7 +70,7 @@ def test(ctx):
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "test",
|
"name": "test",
|
||||||
"image": "docker.io/golang:1.20",
|
"image": "docker.io/golang:1.21",
|
||||||
"commands": [
|
"commands": [
|
||||||
"make test",
|
"make test",
|
||||||
],
|
],
|
||||||
@ -109,7 +109,7 @@ def build(ctx):
|
|||||||
"steps": [
|
"steps": [
|
||||||
{
|
{
|
||||||
"name": "generate",
|
"name": "generate",
|
||||||
"image": "docker.io/golang:1.20",
|
"image": "docker.io/golang:1.21",
|
||||||
"pull": "always",
|
"pull": "always",
|
||||||
"commands": [
|
"commands": [
|
||||||
"make generate",
|
"make generate",
|
||||||
@ -123,7 +123,7 @@ def build(ctx):
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "build",
|
"name": "build",
|
||||||
"image": "docker.io/techknowlogick/xgo:go-1.20.x",
|
"image": "docker.io/techknowlogick/xgo:go-1.21.x",
|
||||||
"pull": "always",
|
"pull": "always",
|
||||||
"commands": [
|
"commands": [
|
||||||
"ln -s /drone/src /source",
|
"ln -s /drone/src /source",
|
||||||
@ -138,7 +138,7 @@ def build(ctx):
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "executable",
|
"name": "executable",
|
||||||
"image": "docker.io/golang:1.20",
|
"image": "docker.io/golang:1.21",
|
||||||
"pull": "always",
|
"pull": "always",
|
||||||
"commands": [
|
"commands": [
|
||||||
"$(find dist/ -executable -type f -iname drone-ansible-linux-amd64) --help",
|
"$(find dist/ -executable -type f -iname drone-ansible-linux-amd64) --help",
|
||||||
@ -205,7 +205,7 @@ def docker(ctx, arch):
|
|||||||
"steps": [
|
"steps": [
|
||||||
{
|
{
|
||||||
"name": "generate",
|
"name": "generate",
|
||||||
"image": "docker.io/golang:1.20",
|
"image": "docker.io/golang:1.21",
|
||||||
"pull": "always",
|
"pull": "always",
|
||||||
"commands": [
|
"commands": [
|
||||||
"make generate",
|
"make generate",
|
||||||
@ -219,7 +219,7 @@ def docker(ctx, arch):
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "build",
|
"name": "build",
|
||||||
"image": "docker.io/golang:1.20",
|
"image": "docker.io/golang:1.21",
|
||||||
"pull": "always",
|
"pull": "always",
|
||||||
"commands": [
|
"commands": [
|
||||||
"make build",
|
"make build",
|
||||||
|
@ -96,4 +96,4 @@ run:
|
|||||||
linters-settings:
|
linters-settings:
|
||||||
gofumpt:
|
gofumpt:
|
||||||
extra-rules: true
|
extra-rules: true
|
||||||
lang-version: "1.20"
|
lang-version: "1.21"
|
||||||
|
2
Makefile
2
Makefile
@ -20,7 +20,7 @@ XGO_PACKAGE ?= src.techknowlogick.com/xgo@latest
|
|||||||
|
|
||||||
GENERATE ?= $(IMPORT)/pkg/templates
|
GENERATE ?= $(IMPORT)/pkg/templates
|
||||||
XGO_PACKAGE ?= src.techknowlogick.com/xgo@latest
|
XGO_PACKAGE ?= src.techknowlogick.com/xgo@latest
|
||||||
XGO_VERSION := go-1.20.x
|
XGO_VERSION := go-1.21.x
|
||||||
XGO_TARGETS ?= linux/amd64,linux/arm64,darwin/amd64,darwin/arm64,windows/amd64
|
XGO_TARGETS ?= linux/amd64,linux/arm64,darwin/amd64,darwin/arm64,windows/amd64
|
||||||
|
|
||||||
TAGS ?= netgo
|
TAGS ?= netgo
|
||||||
|
2
go.mod
2
go.mod
@ -1,6 +1,6 @@
|
|||||||
module github.com/owncloud-ci/drone-ansible
|
module github.com/owncloud-ci/drone-ansible
|
||||||
|
|
||||||
go 1.20
|
go 1.21
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/drone-plugins/drone-plugin-lib v0.4.1
|
github.com/drone-plugins/drone-plugin-lib v0.4.1
|
||||||
|
1
go.sum
1
go.sum
@ -28,3 +28,4 @@ golang.org/x/sys v0.11.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|||||||
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
||||||
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
|
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
|
||||||
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
|
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
|
||||||
|
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
|
||||||
|
Loading…
Reference in New Issue
Block a user