support for new env plugin
This commit is contained in:
@@ -17,6 +17,7 @@ import (
|
||||
"github.com/drone-runners/drone-runner-docker/engine"
|
||||
"github.com/drone-runners/drone-runner-docker/engine/resource"
|
||||
"github.com/drone/drone-go/drone"
|
||||
"github.com/drone/runner-go/environ/provider"
|
||||
"github.com/drone/runner-go/manifest"
|
||||
"github.com/drone/runner-go/registry"
|
||||
"github.com/drone/runner-go/secret"
|
||||
@@ -97,6 +98,7 @@ func TestCompile_Secrets(t *testing.T) {
|
||||
manifest, _ := manifest.ParseFile("testdata/secret.yml")
|
||||
|
||||
compiler := &Compiler{
|
||||
Environ: provider.Static(nil),
|
||||
Registry: registry.Static(nil),
|
||||
Secret: secret.StaticVars(map[string]string{
|
||||
"token": "3DA541559918A808C2402BBA5012F6C60B27661C",
|
||||
@@ -158,6 +160,7 @@ func testCompile(t *testing.T, source, golden string) *engine.Spec {
|
||||
}
|
||||
|
||||
compiler := &Compiler{
|
||||
Environ: provider.Static(nil),
|
||||
Registry: registry.Static(nil),
|
||||
Secret: secret.StaticVars(map[string]string{
|
||||
"token": "3DA541559918A808C2402BBA5012F6C60B27661C",
|
||||
|
||||
Reference in New Issue
Block a user