Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GithubActionYAML ¶
type GithubActionYAML struct { On GithubActionYAMLOnPush `yaml:"on,omitempty"` Name string `yaml:"name,omitempty"` Jobs map[string]GithubActionYAMLJob `yaml:"jobs,omitempty"` }
type GithubActionYAMLJob ¶
type GithubActionYAMLJob struct { RunsOn string `yaml:"runs-on,omitempty"` Steps []GithubActionYAMLStep `yaml:"steps,omitempty"` }
type GithubActionYAMLOnPush ¶
type GithubActionYAMLOnPush struct {
Push GithubActionYAMLOnPushBranches `yaml:"push,omitempty"`
}
type GithubActionYAMLOnPushBranches ¶
type GithubActionYAMLOnPushBranches struct {
Branches []string `yaml:"branches,omitempty"`
}
type GithubActionYAMLStep ¶
type GithubActionYAMLStep struct { Name string `yaml:"name,omitempty"` ID string `yaml:"id,omitempty"` Timeout uint64 `yaml:"timeout-minutes,omitempty"` Uses string `yaml:"uses,omitempty"` Run string `yaml:"run,omitempty"` With map[string]string `yaml:"with,omitempty"` Env map[string]string `yaml:"env,omitempty"` }
type GithubActions ¶
type GithubActions struct { ServerURL string GithubOAuthIntegration *models.GitRepo GitRepoName string GitRepoOwner string Repo repository.Repository GithubConf *oauth2.Config // one of these will let us authenticate GithubAppID int64 GithubAppSecretPath string GithubInstallationID uint PorterToken string BuildEnv map[string]string ProjectID uint ClusterID uint ReleaseName string ReleaseNamespace string GitBranch string DockerFilePath string FolderPath string ImageRepoURL string Version string ShouldGenerateOnly bool ShouldCreateWorkflow bool // contains filtered or unexported fields }
func (*GithubActions) Cleanup ¶
func (g *GithubActions) Cleanup() error
func (*GithubActions) CreateEnvSecret ¶
func (g *GithubActions) CreateEnvSecret() error
func (*GithubActions) GetGithubActionYAML ¶
func (g *GithubActions) GetGithubActionYAML() ([]byte, error)
func (*GithubActions) Setup ¶
func (g *GithubActions) Setup() ([]byte, error)
Click to show internal directories.
Click to hide internal directories.