(feat) adding image field to step

This commit is contained in:
tphoney
2021-02-26 14:52:31 +00:00
parent a1030d681a
commit 2f6d747028
3 changed files with 7 additions and 2 deletions

View File

@@ -159,6 +159,7 @@ func (s *Step) GetRunPolicy() runtime.RunPolicy { return s.RunPolicy }
func (s *Step) GetSecretAt(i int) runtime.Secret { return s.Secrets[i] } func (s *Step) GetSecretAt(i int) runtime.Secret { return s.Secrets[i] }
func (s *Step) GetSecretLen() int { return len(s.Secrets) } func (s *Step) GetSecretLen() int { return len(s.Secrets) }
func (s *Step) IsDetached() bool { return s.Detach } func (s *Step) IsDetached() bool { return s.Detach }
func (s *Step) GetImage() string { return s.Image }
func (s *Step) Clone() runtime.Step { func (s *Step) Clone() runtime.Step {
dst := new(Step) dst := new(Step)
*dst = *s *dst = *s

4
go.mod
View File

@@ -15,9 +15,9 @@ require (
github.com/docker/distribution v2.7.1+incompatible github.com/docker/distribution v2.7.1+incompatible
github.com/docker/docker v0.0.0-00010101000000-000000000000 github.com/docker/docker v0.0.0-00010101000000-000000000000
github.com/docker/go-connections v0.3.0 // indirect github.com/docker/go-connections v0.3.0 // indirect
github.com/drone/drone-go v1.4.1-0.20201109202657-b9e58bbbcf27 github.com/drone/drone-go v1.6.0
github.com/drone/envsubst v1.0.2 github.com/drone/envsubst v1.0.2
github.com/drone/runner-go v1.6.1-0.20201109204555-a2c975273a49 github.com/drone/runner-go v1.7.0
github.com/drone/signal v1.0.0 github.com/drone/signal v1.0.0
github.com/ghodss/yaml v1.0.0 github.com/ghodss/yaml v1.0.0
github.com/gogo/protobuf v0.0.0-20170307180453-100ba4e88506 // indirect github.com/gogo/protobuf v0.0.0-20170307180453-100ba4e88506 // indirect

4
go.sum
View File

@@ -40,6 +40,8 @@ github.com/drone/drone-go v1.2.1-0.20200326064413-195394da1018 h1:aHRv4GohqzHXZE
github.com/drone/drone-go v1.2.1-0.20200326064413-195394da1018/go.mod h1:GxyeGClYohaKNYJv/ZpsmVHtMJ7WhoT+uDaJNcDIrk4= github.com/drone/drone-go v1.2.1-0.20200326064413-195394da1018/go.mod h1:GxyeGClYohaKNYJv/ZpsmVHtMJ7WhoT+uDaJNcDIrk4=
github.com/drone/drone-go v1.4.1-0.20201109202657-b9e58bbbcf27 h1:58xKlW/Kwp/Apz+R5qNGzBUIzfq1Z57L7Udz1B6bgWE= github.com/drone/drone-go v1.4.1-0.20201109202657-b9e58bbbcf27 h1:58xKlW/Kwp/Apz+R5qNGzBUIzfq1Z57L7Udz1B6bgWE=
github.com/drone/drone-go v1.4.1-0.20201109202657-b9e58bbbcf27/go.mod h1:fxCf9jAnXDZV1yDr0ckTuWd1intvcQwfJmTRpTZ1mXg= github.com/drone/drone-go v1.4.1-0.20201109202657-b9e58bbbcf27/go.mod h1:fxCf9jAnXDZV1yDr0ckTuWd1intvcQwfJmTRpTZ1mXg=
github.com/drone/drone-go v1.6.0 h1:HJXienGtXlUKLe8z0iDsX6012CE9/2of5pQpUiD+zSA=
github.com/drone/drone-go v1.6.0/go.mod h1:fxCf9jAnXDZV1yDr0ckTuWd1intvcQwfJmTRpTZ1mXg=
github.com/drone/envsubst v1.0.2 h1:dpYLMAspQHW0a8dZpLRKe9jCNvIGZPhCPrycZzIHdqo= github.com/drone/envsubst v1.0.2 h1:dpYLMAspQHW0a8dZpLRKe9jCNvIGZPhCPrycZzIHdqo=
github.com/drone/envsubst v1.0.2/go.mod h1:bkZbnc/2vh1M12Ecn7EYScpI4YGYU0etwLJICOWi8Z0= github.com/drone/envsubst v1.0.2/go.mod h1:bkZbnc/2vh1M12Ecn7EYScpI4YGYU0etwLJICOWi8Z0=
github.com/drone/runner-go v1.6.1-0.20200506182602-d2e6327ade15 h1:+oj5a9GdF1DeQ3+i1pxARZBCd2wjYPPZveerAcF+WZk= github.com/drone/runner-go v1.6.1-0.20200506182602-d2e6327ade15 h1:+oj5a9GdF1DeQ3+i1pxARZBCd2wjYPPZveerAcF+WZk=
@@ -66,6 +68,8 @@ github.com/drone/runner-go v1.6.1-0.20201016191343-2020a87dfb8c h1:WVtJlsgxuPUkl
github.com/drone/runner-go v1.6.1-0.20201016191343-2020a87dfb8c/go.mod h1:+Zc4z9/xqlqkFkAcqOtuYjYS77d2PeuWh0PxxibHfNs= github.com/drone/runner-go v1.6.1-0.20201016191343-2020a87dfb8c/go.mod h1:+Zc4z9/xqlqkFkAcqOtuYjYS77d2PeuWh0PxxibHfNs=
github.com/drone/runner-go v1.6.1-0.20201109204555-a2c975273a49 h1:QhKyybx+8ZH6Pnrfu1kGaLF0TMOMWiN1yjDBCpTC1JY= github.com/drone/runner-go v1.6.1-0.20201109204555-a2c975273a49 h1:QhKyybx+8ZH6Pnrfu1kGaLF0TMOMWiN1yjDBCpTC1JY=
github.com/drone/runner-go v1.6.1-0.20201109204555-a2c975273a49/go.mod h1:dvQqJEhEoq2wmOi2AUs1Ti2BgpJdeaqU5IeEtisT588= github.com/drone/runner-go v1.6.1-0.20201109204555-a2c975273a49/go.mod h1:dvQqJEhEoq2wmOi2AUs1Ti2BgpJdeaqU5IeEtisT588=
github.com/drone/runner-go v1.7.0 h1:bxvopa3zJJnEqjTsW/a7tn0syfvo0X9B0VBm+7IQLEU=
github.com/drone/runner-go v1.7.0/go.mod h1:rKn98jQVmPzrXYX8kPCupAn3QwxyhmR0lX9hvFiJJI8=
github.com/drone/signal v1.0.0 h1:NrnM2M/4yAuU/tXs6RP1a1ZfxnaHwYkd0kJurA1p6uI= github.com/drone/signal v1.0.0 h1:NrnM2M/4yAuU/tXs6RP1a1ZfxnaHwYkd0kJurA1p6uI=
github.com/drone/signal v1.0.0/go.mod h1:S8t92eFT0g4WUgEc/LxG+LCuiskpMNsG0ajAMGnyZpc= github.com/drone/signal v1.0.0/go.mod h1:S8t92eFT0g4WUgEc/LxG+LCuiskpMNsG0ajAMGnyZpc=
github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=