From 0563d7a30f79b31691039b2967245e65ab5e66df Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Wed, 16 Aug 2023 15:17:43 +0200 Subject: [PATCH] Bump default git clone plugin (#2215) - and add alternate quay registry to trusted clone image - add alternate registry for buildx plugin --- pipeline/frontend/yaml/compiler/compiler_test.go | 3 ++- shared/constant/constant.go | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/pipeline/frontend/yaml/compiler/compiler_test.go b/pipeline/frontend/yaml/compiler/compiler_test.go index 5f0736393..bfae44eef 100644 --- a/pipeline/frontend/yaml/compiler/compiler_test.go +++ b/pipeline/frontend/yaml/compiler/compiler_test.go @@ -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 + ":"}, diff --git a/shared/constant/constant.go b/shared/constant/constant.go index 5e4e4ff8b..3d46ee769 100644 --- a/shared/constant/constant.go +++ b/shared/constant/constant.go @@ -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", }