Skip to content

Commit

Permalink
fix: don't initialize releases on build server
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveRuble committed Jul 8, 2021
1 parent 601bd7e commit 61c36ea
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ func getBosun(optionalParams ...cli.Parameters) (*bosun.Bosun, error) {
params.Force = params.Force || viper.GetBool(ArgGlobalForce)
params.NoEnvironment = params.NoEnvironment || viper.GetBool(ArgGlobalNoEnv)
params.NoCluster = params.NoCluster || viper.GetBool(ArgGlobalNoCluster)

params.ConfirmedEnv = viper.GetString(ArgGlobalConfirmedEnv)
params.ProviderPriority = viper.GetStringSlice(ArgAppProviderPriority)

Expand Down
2 changes: 1 addition & 1 deletion pkg/bosun/bosun.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ func (b *Bosun) initializeAppProviders() error {
if err != nil {
return err
}
if !p.isAutomationDummy {
if !p.isAutomationDummy && !b.ws.BuildServer {

for _, slot := range []string{SlotUnstable, SlotStable} {
release, releaseErr := p.GetReleaseManifestBySlot(slot)
Expand Down
1 change: 1 addition & 0 deletions pkg/bosun/workspace.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ type Workspace struct {
Imports []string `yaml:"imports,omitempty" json:"imports"`
Parameters cli.Parameters `yaml:"parameters" json:"parameters"`
GitRoots []string `yaml:"gitRoots" json:"gitRoots"`
BuildServer bool `yaml:"buildServer" json:"buildServer"`
GithubToken *command.CommandValue `yaml:"githubToken" json:"githubToken"`
ScratchDir string `yaml:"scratchDir" json:"scratchDir"`
WorkspaceCommands map[string]*command.CommandValue `yaml:"workspaceCommands"`
Expand Down

0 comments on commit 61c36ea

Please sign in to comment.