Skip to content

Commit

Permalink
Merge branch 'master' into taskcluster-support
Browse files Browse the repository at this point in the history
  • Loading branch information
oremj authored Mar 23, 2020
2 parents 5ea72ab + 6e2c7a9 commit 8c0d3b9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,17 +84,19 @@ func main() {
return cli.NewExitError(err.Error(), 1)
}

handler := proxyservice.NewDockerHubWebhookHandler(
proxyservice.NewJenkins(
c.String("jenkins-base-url"),
c.String("jenkins-user"),
c.String("jenkins-password"),
),
jenkins := proxyservice.NewJenkins(
c.String("jenkins-base-url"),
c.String("jenkins-user"),
c.String("jenkins-password"),
)

dockerhubHandler := proxyservice.NewDockerHubWebhookHandler(
jenkins,
c.StringSlice("valid-namespace")...,
)

mux := http.NewServeMux()
mux.Handle("/dockerhub", handler)
mux.Handle("/dockerhub", dockerhubHandler)
mux.HandleFunc("/__heartbeat__", func(w http.ResponseWriter, req *http.Request) {
w.Write([]byte("OK"))
})
Expand Down
File renamed without changes.

0 comments on commit 8c0d3b9

Please sign in to comment.