Permalink
Browse files

fix todo for missing env variables from api

  • Loading branch information...
bradrydzewski committed May 23, 2017
1 parent 0b4dbf8 commit 076dc0c3b93b1acde22ee68d4f5506f7d6538efd
Showing with 3 additions and 1 deletion.
  1. +1 −1 server/build.go
  2. +2 −0 server/hook.go
View
@@ -494,8 +494,8 @@ func PostBuild(c *gin.Context) {
Regs: regs,
Link: httputil.GetURL(c.Request),
Yaml: conf.Data,
Envs: buildParams,
}
// TODO inject environment varibles !!!!!! buildParams
items, err := b.Build()
if err != nil {
build.Status = model.StatusError
View
@@ -394,6 +394,7 @@ type builder struct {
Regs []*model.Registry
Link string
Yaml string
Envs map[string]string
}
type buildItem struct {
@@ -481,6 +482,7 @@ func (b *builder) Build() ([]*buildItem, error) {
ir := compiler.New(
compiler.WithEnviron(environ),
compiler.WithEnviron(b.Envs),
compiler.WithEscalated(Config.Pipeline.Privileged...),
compiler.WithVolumes(Config.Pipeline.Volumes...),
compiler.WithNetworks(Config.Pipeline.Networks...),

0 comments on commit 076dc0c

Please sign in to comment.