mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-04-25 13:14:08 +00:00
propogate hostname correctly
This commit is contained in:
parent
7f533927c7
commit
cb4f2f9a1d
2 changed files with 4 additions and 3 deletions
|
@ -97,9 +97,9 @@ func Load(middleware ...gin.HandlerFunc) http.Handler {
|
||||||
// requires push permissions
|
// requires push permissions
|
||||||
repo.GET("/registry", session.MustPush, server.GetRegistryList)
|
repo.GET("/registry", session.MustPush, server.GetRegistryList)
|
||||||
repo.POST("/registry", session.MustPush, server.PostRegistry)
|
repo.POST("/registry", session.MustPush, server.PostRegistry)
|
||||||
repo.GET("/registry/:address", session.MustPush, server.GetRegistry)
|
repo.GET("/registry/:registry", session.MustPush, server.GetRegistry)
|
||||||
repo.PATCH("/registry/:address", session.MustPush, server.PatchRegistry)
|
repo.PATCH("/registry/:registry", session.MustPush, server.PatchRegistry)
|
||||||
repo.DELETE("/registry/:address", session.MustPush, server.DeleteRegistry)
|
repo.DELETE("/registry/:registry", session.MustPush, server.DeleteRegistry)
|
||||||
|
|
||||||
// requires push permissions
|
// requires push permissions
|
||||||
repo.PATCH("", session.MustPush, server.PatchRepo)
|
repo.PATCH("", session.MustPush, server.PatchRepo)
|
||||||
|
|
|
@ -448,6 +448,7 @@ func (b *builder) Build() ([]*buildItem, error) {
|
||||||
var registries []compiler.Registry
|
var registries []compiler.Registry
|
||||||
for _, reg := range b.Regs {
|
for _, reg := range b.Regs {
|
||||||
registries = append(registries, compiler.Registry{
|
registries = append(registries, compiler.Registry{
|
||||||
|
Hostname: reg.Address,
|
||||||
Username: reg.Username,
|
Username: reg.Username,
|
||||||
Password: reg.Password,
|
Password: reg.Password,
|
||||||
Email: reg.Email,
|
Email: reg.Email,
|
||||||
|
|
Loading…
Reference in a new issue