Skip to content

Commit

Permalink
Bump default git clone plugin (#2215)
Browse files Browse the repository at this point in the history
- and add alternate quay registry to trusted clone image
- add alternate registry for buildx plugin
  • Loading branch information
6543 authored Aug 16, 2023
1 parent f2e31c6 commit 0563d7a
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion pipeline/frontend/yaml/compiler/compiler_test.go
Original file line number Diff line number Diff line change
@@ -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 + ":"},
4 changes: 3 additions & 1 deletion shared/constant/constant.go
Original file line number Diff line number Diff line change
@@ -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",
}

0 comments on commit 0563d7a

Please sign in to comment.