Compare commits
2 Commits
21950f5dbf
...
8fa00be3c5
Author | SHA1 | Date | |
---|---|---|---|
8fa00be3c5 | |||
068c8819ce |
@ -1,5 +1,10 @@
|
|||||||
kind: pipeline
|
kind: pipeline
|
||||||
name: build
|
name: build
|
||||||
|
|
||||||
|
# 减少没必要的重复拉取仓库
|
||||||
|
clone:
|
||||||
|
disable: true
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: 打包Docker镜像并推送
|
- name: 打包Docker镜像并推送
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
|
4
main.go
4
main.go
@ -1,6 +1,8 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"fmt"
|
||||||
|
"gateway/config"
|
||||||
"gateway/core"
|
"gateway/core"
|
||||||
"gateway/initialization"
|
"gateway/initialization"
|
||||||
"gateway/middleware"
|
"gateway/middleware"
|
||||||
@ -35,5 +37,5 @@ func main() {
|
|||||||
// context.String(http.StatusOK, get("get", context.Request.RequestURI, context.GetString("X-Request-Id"), dd))
|
// context.String(http.StatusOK, get("get", context.Request.RequestURI, context.GetString("X-Request-Id"), dd))
|
||||||
//})
|
//})
|
||||||
|
|
||||||
_ = app.Run(":8889")
|
_ = app.Run(fmt.Sprintf(":%v", config.AppInfo.Port))
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user