mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-22 09:51:01 +00:00
Bump default git clone plugin (#2215)
- and add alternate quay registry to trusted clone image - add alternate registry for buildx plugin
This commit is contained in:
parent
f2e31c6770
commit
0563d7a30f
2 changed files with 5 additions and 2 deletions
|
@ -23,6 +23,7 @@ import (
|
||||||
"github.com/woodpecker-ci/woodpecker/pipeline/frontend/metadata"
|
"github.com/woodpecker-ci/woodpecker/pipeline/frontend/metadata"
|
||||||
yaml_types "github.com/woodpecker-ci/woodpecker/pipeline/frontend/yaml/types"
|
yaml_types "github.com/woodpecker-ci/woodpecker/pipeline/frontend/yaml/types"
|
||||||
yaml_base_types "github.com/woodpecker-ci/woodpecker/pipeline/frontend/yaml/types/base"
|
yaml_base_types "github.com/woodpecker-ci/woodpecker/pipeline/frontend/yaml/types/base"
|
||||||
|
"github.com/woodpecker-ci/woodpecker/shared/constant"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestSecretAvailable(t *testing.T) {
|
func TestSecretAvailable(t *testing.T) {
|
||||||
|
@ -89,7 +90,7 @@ func TestCompilerCompile(t *testing.T) {
|
||||||
Name: "test_clone",
|
Name: "test_clone",
|
||||||
Alias: "clone",
|
Alias: "clone",
|
||||||
Type: backend_types.StepTypeClone,
|
Type: backend_types.StepTypeClone,
|
||||||
Image: "docker.io/woodpeckerci/plugin-git:2.1.0",
|
Image: constant.DefaultCloneImage,
|
||||||
OnSuccess: true,
|
OnSuccess: true,
|
||||||
Failure: "fail",
|
Failure: "fail",
|
||||||
Volumes: []string{defaultVolumes[0].Name + ":"},
|
Volumes: []string{defaultVolumes[0].Name + ":"},
|
||||||
|
|
|
@ -20,6 +20,7 @@ var PrivilegedPlugins = []string{
|
||||||
"plugins/gcr",
|
"plugins/gcr",
|
||||||
"plugins/ecr",
|
"plugins/ecr",
|
||||||
"woodpeckerci/plugin-docker-buildx",
|
"woodpeckerci/plugin-docker-buildx",
|
||||||
|
"codeberg.org/woodpecker-plugins/docker-buildx",
|
||||||
}
|
}
|
||||||
|
|
||||||
// DefaultConfigOrder represent the priority in witch woodpecker search for a pipeline config by default
|
// DefaultConfigOrder represent the priority in witch woodpecker search for a pipeline config by default
|
||||||
|
@ -32,9 +33,10 @@ var DefaultConfigOrder = [...]string{
|
||||||
|
|
||||||
const (
|
const (
|
||||||
// DefaultCloneImage can be changed by 'WOODPECKER_DEFAULT_CLONE_IMAGE' at runtime
|
// DefaultCloneImage can be changed by 'WOODPECKER_DEFAULT_CLONE_IMAGE' at runtime
|
||||||
DefaultCloneImage = "docker.io/woodpeckerci/plugin-git:2.1.0"
|
DefaultCloneImage = "docker.io/woodpeckerci/plugin-git:2.1.1"
|
||||||
)
|
)
|
||||||
|
|
||||||
var TrustedCloneImages = []string{
|
var TrustedCloneImages = []string{
|
||||||
DefaultCloneImage,
|
DefaultCloneImage,
|
||||||
|
"quay.io/woodpeckerci/plugin-git",
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue