grim/convey

Create a zip file for the docs

11 months ago, Gary Kramlich
c6695a974177
Create a zip file for the docs

Also renamed `convey-docs.yml` as it was getting deleted by the convey clean plan previously.

Testing Done:
Ran locally and verified the zip file was structured correctly.

Reviewed at https://reviews.imfreedom.org/r/2469/
package docker
import (
"fmt"
log "github.com/sirupsen/logrus"
"keep.imfreedom.org/grim/convey/environment"
"keep.imfreedom.org/grim/convey/podman"
"keep.imfreedom.org/grim/convey/runtime"
"keep.imfreedom.org/grim/convey/yaml"
)
type Push struct {
Image string `yaml:"image"`
Images yaml.StringOrSlice `yaml:"images"`
realPush *podman.Push
}
func (p *Push) Execute(name string, logger *log.Entry, stageEnv environment.Environment, rt *runtime.Runtime) error {
return p.realPush.Execute(name, logger, stageEnv, rt)
}
func (p *Push) New() runtime.Task {
return &Push{}
}
func (p *Push) Valid() error {
if p.Image != "" {
p.Images = append([]string{p.Image}, p.Images...)
}
p.realPush = &podman.Push{
Tags: p.Images,
}
return p.realPush.Valid()
}
func (p *Push) Deprecated() error {
return fmt.Errorf("docker/push has been deprecated in favor of podman/push since 0.15.0")
}