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
|
||||
repo.GET("/registry", session.MustPush, server.GetRegistryList)
|
||||
repo.POST("/registry", session.MustPush, server.PostRegistry)
|
||||
repo.GET("/registry/:address", session.MustPush, server.GetRegistry)
|
||||
repo.PATCH("/registry/:address", session.MustPush, server.PatchRegistry)
|
||||
repo.DELETE("/registry/:address", session.MustPush, server.DeleteRegistry)
|
||||
repo.GET("/registry/:registry", session.MustPush, server.GetRegistry)
|
||||
repo.PATCH("/registry/:registry", session.MustPush, server.PatchRegistry)
|
||||
repo.DELETE("/registry/:registry", session.MustPush, server.DeleteRegistry)
|
||||
|
||||
// requires push permissions
|
||||
repo.PATCH("", session.MustPush, server.PatchRepo)
|
||||
|
|
|
@ -448,6 +448,7 @@ func (b *builder) Build() ([]*buildItem, error) {
|
|||
var registries []compiler.Registry
|
||||
for _, reg := range b.Regs {
|
||||
registries = append(registries, compiler.Registry{
|
||||
Hostname: reg.Address,
|
||||
Username: reg.Username,
|
||||
Password: reg.Password,
|
||||
Email: reg.Email,
|
||||
|
|
Loading…
Reference in a new issue