config

package
v0.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 16, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateConfig

func ValidateConfig(cfg Config) error

Types

type CacheConfig added in v0.0.6

type CacheConfig struct {
	Key   string   `yaml:"key"`
	Paths []string `yaml:"paths"`
}

type Config

type Config struct {
	FileName        string
	Stages          []string               `yaml:"stages"`
	Blocks          map[string]StageConfig `yaml:",inline"`
	GlobalVariables map[string]string      `yaml:"variables,omitempty"`
}

func (*Config) GetConfig

func (c *Config) GetConfig(file string) error

type StageConfig added in v0.0.5

type StageConfig struct {
	Image     string            `yaml:"image"`
	Script    []string          `yaml:"script"`
	Stage     string            `yaml:"stage"`
	Workdir   string            `yaml:"workdir,omitempty"`
	Variables map[string]string `yaml:"variables,omitempty"`
	Cache     CacheConfig       `yaml:"cache,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL