Skip to content

Commit

Permalink
Merge pull request #74 from stelligent/develop
Browse files Browse the repository at this point in the history
Bug with stack params
  • Loading branch information
cplee authored Feb 1, 2017
2 parents 37555ee + 9893b82 commit f556e1d
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 20 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ deps:
glide install
go generate $(SRC_FILES)

lint:
lint: fmt
@echo "=== linting ==="
go vet $(SRC_FILES)
glide novendor | xargs -n1 golint -set_exit_status
Expand Down Expand Up @@ -85,7 +85,7 @@ clean:
all: clean deps test build

fmt:
@echo "=== cleaning ==="
@echo "=== formatting ==="
go fmt $(SRC_FILES)


Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.5
0.1.6
28 changes: 14 additions & 14 deletions templates/assets.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 10 additions & 3 deletions workflows/pipeline_upsert.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,18 @@ func (workflow *pipelineWorkflow) pipelineUpserter(tokenProvider func(bool) stri
}
pipelineParams["GitHubUser"] = sourceRepo[0]
pipelineParams["GitHubRepo"] = sourceRepo[1]
pipelineParams["GitHubBranch"] = workflow.pipelineConfig.Source.Branch
pipelineParams["GitHubToken"] = tokenProvider(pipelineStack == nil)

pipelineParams["BuildType"] = workflow.pipelineConfig.Build.Type
pipelineParams["BuildComputeType"] = workflow.pipelineConfig.Build.ComputeType
if workflow.pipelineConfig.Source.Branch != "" {
pipelineParams["GitHubBranch"] = workflow.pipelineConfig.Source.Branch
}

if workflow.pipelineConfig.Build.Type != "" {
pipelineParams["BuildType"] = workflow.pipelineConfig.Build.Type
}
if workflow.pipelineConfig.Build.ComputeType != "" {
pipelineParams["BuildComputeType"] = workflow.pipelineConfig.Build.ComputeType
}

if workflow.pipelineConfig.Build.Image != "" {
pipelineParams["BuildImage"] = workflow.pipelineConfig.Build.Image
Expand Down

0 comments on commit f556e1d

Please sign in to comment.