Documentation
¶
Index ¶
- func DefaultTagSuffix(ref, suffix string) ([]string, error)
- func DefaultTags(ref string) ([]string, error)
- func New(settings Settings, pipeline drone.Pipeline, network drone.Network) drone.Plugin
- func UseDefaultTag(ref, defaultBranch string) bool
- type Build
- type Daemon
- type Login
- type Plugin
- type Settings
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultTagSuffix ¶
DefaultTagSuffix returns a set of default suggested tags based on the commit ref with an attached suffix.
func DefaultTags ¶
DefaultTags returns a set of default suggested tags based on the commit ref.
func UseDefaultTag ¶
UseDefaultTag for keep only default branch for latest tag
Types ¶
type Build ¶
type Build struct {
Remote string // Git remote URL
Ref string // Git commit ref
Branch string // Git repository branch
Dockerfile string // Docker build Dockerfile
Context string // Docker build context
TagsAuto bool // Docker build auto tag
TagsSuffix string // Docker build tags with suffix
Tags cli.StringSlice // Docker build tags
LabelsAuto bool // Docker build auto labels
Labels cli.StringSlice // Docker build labels
Platforms cli.StringSlice // Docker build target platforms
Args cli.StringSlice // Docker build args
ArgsEnv cli.StringSlice // Docker build args from env
Target string // Docker build target
Output string // Docker build output
Pull bool // Docker build pull
CacheFrom cli.StringSlice // Docker build cache-from
Compress bool // Docker build compress
Repo cli.StringSlice // Docker build repository
NoCache bool // Docker build no-cache
AddHost cli.StringSlice // Docker build add-host
Quiet bool // Docker build quiet
}
Build defines Docker build parameters.
type Daemon ¶
type Daemon struct {
Registry string // Docker registry
Mirror string // Docker registry mirror
Insecure bool // Docker daemon enable insecure registries
StorageDriver string // Docker daemon storage driver
StoragePath string // Docker daemon storage path
Disabled bool // DOcker daemon is disabled (already running)
Debug bool // Docker daemon started in debug mode
Bip string // Docker daemon network bridge IP address
DNS cli.StringSlice // Docker daemon dns server
DNSSearch cli.StringSlice // Docker daemon dns search domain
MTU string // Docker daemon mtu setting
IPv6 bool // Docker daemon IPv6 networking
Experimental bool // Docker daemon enable experimental mode
BuildkitConfig string // Docker buildkit config
}
Daemon defines Docker daemon parameters.
type Login ¶
type Login struct {
Registry string // Docker registry address
Username string // Docker registry username
Password string // Docker registry password
Email string // Docker registry email
Config string // Docker Auth Config
}
Login defines Docker login parameters.
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
Plugin implements drone.Plugin to provide the plugin implementation.
func (*Plugin) InitSettings ¶ added in v1.0.0
Init initialise plugin settings
Click to show internal directories.
Click to hide internal directories.