go 1.21
This commit is contained in:
@@ -8,7 +8,7 @@ platform:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: environment
|
- name: environment
|
||||||
image: golang:1.16
|
image: golang:1.21
|
||||||
pull: always
|
pull: always
|
||||||
environment:
|
environment:
|
||||||
CGO_ENABLED: "0"
|
CGO_ENABLED: "0"
|
||||||
@@ -16,10 +16,11 @@ steps:
|
|||||||
- go version
|
- go version
|
||||||
- go env
|
- go env
|
||||||
- name: build
|
- name: build
|
||||||
image: golang:1.16
|
image: golang:1.21
|
||||||
environment:
|
environment:
|
||||||
CGO_ENABLED: "0"
|
CGO_ENABLED: "0"
|
||||||
commands:
|
commands:
|
||||||
|
- go mod download
|
||||||
- go build -o release/linux/arm64/drone-runner-docker
|
- go build -o release/linux/arm64/drone-runner-docker
|
||||||
- name: publish
|
- name: publish
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
|
|||||||
71
go.mod
71
go.mod
@@ -1,6 +1,8 @@
|
|||||||
module github.com/drone-runners/drone-runner-podman
|
module github.com/drone-runners/drone-runner-podman
|
||||||
|
|
||||||
go 1.16
|
go 1.21
|
||||||
|
|
||||||
|
toolchain go1.21.3
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/buildkite/yaml v2.1.0+incompatible
|
github.com/buildkite/yaml v2.1.0+incompatible
|
||||||
@@ -55,6 +57,7 @@ require (
|
|||||||
github.com/coreos/go-systemd/v22 v22.5.0 // indirect
|
github.com/coreos/go-systemd/v22 v22.5.0 // indirect
|
||||||
github.com/cyberphone/json-canonicalization v0.0.0-20230710064741-aa7fe85c7dbd // indirect
|
github.com/cyberphone/json-canonicalization v0.0.0-20230710064741-aa7fe85c7dbd // indirect
|
||||||
github.com/cyphar/filepath-securejoin v0.2.4 // indirect
|
github.com/cyphar/filepath-securejoin v0.2.4 // indirect
|
||||||
|
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
|
||||||
github.com/disiqueira/gotree/v3 v3.0.2 // indirect
|
github.com/disiqueira/gotree/v3 v3.0.2 // indirect
|
||||||
github.com/distribution/reference v0.5.0 // indirect
|
github.com/distribution/reference v0.5.0 // indirect
|
||||||
github.com/docker/docker-credential-helpers v0.8.0 // indirect
|
github.com/docker/docker-credential-helpers v0.8.0 // indirect
|
||||||
@@ -78,6 +81,7 @@ require (
|
|||||||
github.com/golang/protobuf v1.5.3 // indirect
|
github.com/golang/protobuf v1.5.3 // indirect
|
||||||
github.com/google/go-containerregistry v0.16.1 // indirect
|
github.com/google/go-containerregistry v0.16.1 // indirect
|
||||||
github.com/google/go-intervals v0.0.2 // indirect
|
github.com/google/go-intervals v0.0.2 // indirect
|
||||||
|
github.com/google/pprof v0.0.0-20230705174524-200ffdc848b8 // indirect
|
||||||
github.com/google/uuid v1.3.1 // indirect
|
github.com/google/uuid v1.3.1 // indirect
|
||||||
github.com/gorilla/mux v1.8.0 // indirect
|
github.com/gorilla/mux v1.8.0 // indirect
|
||||||
github.com/gorilla/schema v1.2.0 // indirect
|
github.com/gorilla/schema v1.2.0 // indirect
|
||||||
@@ -113,9 +117,13 @@ require (
|
|||||||
github.com/ostreedev/ostree-go v0.0.0-20210805093236-719684c64e4f // indirect
|
github.com/ostreedev/ostree-go v0.0.0-20210805093236-719684c64e4f // indirect
|
||||||
github.com/pkg/errors v0.9.1 // indirect
|
github.com/pkg/errors v0.9.1 // indirect
|
||||||
github.com/pkg/sftp v1.13.6 // indirect
|
github.com/pkg/sftp v1.13.6 // indirect
|
||||||
|
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
|
||||||
github.com/proglottis/gpgme v0.1.3 // indirect
|
github.com/proglottis/gpgme v0.1.3 // indirect
|
||||||
|
github.com/prometheus/procfs v0.11.0 // indirect
|
||||||
github.com/rivo/uniseg v0.4.4 // indirect
|
github.com/rivo/uniseg v0.4.4 // indirect
|
||||||
|
github.com/rogpeppe/go-internal v1.11.0 // indirect
|
||||||
github.com/secure-systems-lab/go-securesystemslib v0.7.0 // indirect
|
github.com/secure-systems-lab/go-securesystemslib v0.7.0 // indirect
|
||||||
|
github.com/sergi/go-diff v1.3.1 // indirect
|
||||||
github.com/sigstore/fulcio v1.4.0 // indirect
|
github.com/sigstore/fulcio v1.4.0 // indirect
|
||||||
github.com/sigstore/rekor v1.3.0 // indirect
|
github.com/sigstore/rekor v1.3.0 // indirect
|
||||||
github.com/sigstore/sigstore v1.7.3 // indirect
|
github.com/sigstore/sigstore v1.7.3 // indirect
|
||||||
@@ -147,5 +155,66 @@ require (
|
|||||||
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 // indirect
|
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 // indirect
|
||||||
gopkg.in/yaml.v2 v2.4.0 // indirect
|
gopkg.in/yaml.v2 v2.4.0 // indirect
|
||||||
gopkg.in/yaml.v3 v3.0.1 // indirect
|
gopkg.in/yaml.v3 v3.0.1 // indirect
|
||||||
|
k8s.io/kubernetes v1.28.2 // indirect
|
||||||
sigs.k8s.io/yaml v1.3.0 // indirect
|
sigs.k8s.io/yaml v1.3.0 // indirect
|
||||||
)
|
)
|
||||||
|
|
||||||
|
replace k8s.io/api => k8s.io/api v0.28.2
|
||||||
|
|
||||||
|
replace k8s.io/apiextensions-apiserver => k8s.io/apiextensions-apiserver v0.28.2
|
||||||
|
|
||||||
|
replace k8s.io/apimachinery => k8s.io/apimachinery v0.28.2
|
||||||
|
|
||||||
|
replace k8s.io/apiserver => k8s.io/apiserver v0.28.2
|
||||||
|
|
||||||
|
replace k8s.io/cli-runtime => k8s.io/cli-runtime v0.28.2
|
||||||
|
|
||||||
|
replace k8s.io/client-go => k8s.io/client-go v0.28.2
|
||||||
|
|
||||||
|
replace k8s.io/cloud-provider => k8s.io/cloud-provider v0.28.2
|
||||||
|
|
||||||
|
replace k8s.io/cluster-bootstrap => k8s.io/cluster-bootstrap v0.28.2
|
||||||
|
|
||||||
|
replace k8s.io/code-generator => k8s.io/code-generator v0.28.2
|
||||||
|
|
||||||
|
replace k8s.io/component-base => k8s.io/component-base v0.28.2
|
||||||
|
|
||||||
|
replace k8s.io/component-helpers => k8s.io/component-helpers v0.28.2
|
||||||
|
|
||||||
|
replace k8s.io/controller-manager => k8s.io/controller-manager v0.28.2
|
||||||
|
|
||||||
|
replace k8s.io/cri-api => k8s.io/cri-api v0.28.2
|
||||||
|
|
||||||
|
replace k8s.io/csi-translation-lib => k8s.io/csi-translation-lib v0.28.2
|
||||||
|
|
||||||
|
replace k8s.io/dynamic-resource-allocation => k8s.io/dynamic-resource-allocation v0.28.2
|
||||||
|
|
||||||
|
replace k8s.io/endpointslice => k8s.io/endpointslice v0.28.2
|
||||||
|
|
||||||
|
replace k8s.io/kms => k8s.io/kms v0.28.2
|
||||||
|
|
||||||
|
replace k8s.io/kube-aggregator => k8s.io/kube-aggregator v0.28.2
|
||||||
|
|
||||||
|
replace k8s.io/kube-controller-manager => k8s.io/kube-controller-manager v0.28.2
|
||||||
|
|
||||||
|
replace k8s.io/kube-proxy => k8s.io/kube-proxy v0.28.2
|
||||||
|
|
||||||
|
replace k8s.io/kube-scheduler => k8s.io/kube-scheduler v0.28.2
|
||||||
|
|
||||||
|
replace k8s.io/kubectl => k8s.io/kubectl v0.28.2
|
||||||
|
|
||||||
|
replace k8s.io/kubelet => k8s.io/kubelet v0.28.2
|
||||||
|
|
||||||
|
replace k8s.io/legacy-cloud-providers => k8s.io/legacy-cloud-providers v0.28.2
|
||||||
|
|
||||||
|
replace k8s.io/metrics => k8s.io/metrics v0.28.2
|
||||||
|
|
||||||
|
replace k8s.io/mount-utils => k8s.io/mount-utils v0.28.2
|
||||||
|
|
||||||
|
replace k8s.io/pod-security-admission => k8s.io/pod-security-admission v0.28.2
|
||||||
|
|
||||||
|
replace k8s.io/sample-apiserver => k8s.io/sample-apiserver v0.28.2
|
||||||
|
|
||||||
|
replace k8s.io/sample-cli-plugin => k8s.io/sample-cli-plugin v0.28.2
|
||||||
|
|
||||||
|
replace k8s.io/sample-controller => k8s.io/sample-controller v0.28.2
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ export GOPATH=""
|
|||||||
# enable cgo due to
|
# enable cgo due to
|
||||||
# https://github.com/containers/image/issues/1382
|
# https://github.com/containers/image/issues/1382
|
||||||
# which means difficult times ahead with cross compiling
|
# which means difficult times ahead with cross compiling
|
||||||
export CGO_ENABLED=1
|
export CGO_ENABLED=0
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
set -x
|
set -x
|
||||||
|
|||||||
Reference in New Issue
Block a user