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:
6543 2023-08-16 15:17:43 +02:00 committed by GitHub
parent f2e31c6770
commit 0563d7a30f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View file

@ -23,6 +23,7 @@ import (
"github.com/woodpecker-ci/woodpecker/pipeline/frontend/metadata"
yaml_types "github.com/woodpecker-ci/woodpecker/pipeline/frontend/yaml/types"
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) {
@ -89,7 +90,7 @@ func TestCompilerCompile(t *testing.T) {
Name: "test_clone",
Alias: "clone",
Type: backend_types.StepTypeClone,
Image: "docker.io/woodpeckerci/plugin-git:2.1.0",
Image: constant.DefaultCloneImage,
OnSuccess: true,
Failure: "fail",
Volumes: []string{defaultVolumes[0].Name + ":"},

View file

@ -20,6 +20,7 @@ var PrivilegedPlugins = []string{
"plugins/gcr",
"plugins/ecr",
"woodpeckerci/plugin-docker-buildx",
"codeberg.org/woodpecker-plugins/docker-buildx",
}
// DefaultConfigOrder represent the priority in witch woodpecker search for a pipeline config by default
@ -32,9 +33,10 @@ var DefaultConfigOrder = [...]string{
const (
// 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{
DefaultCloneImage,
"quay.io/woodpeckerci/plugin-git",
}