Browse Source

打包v1版本

master
李寻欢 9 months ago
parent
commit
3bd4b166be
  1. 4
      .drone.yml
  2. 4
      main.go

4
.drone.yml

@ -9,7 +9,9 @@ steps:
use_cache: true
username: [email protected]
password: l4rQkKdtIOlHKkTv
auto_tag: true
# auto_tag: true
tags:
- v1
when:
event: push
branch: master

4
main.go

@ -104,11 +104,11 @@ func main() {
initNacos()
app.GET("/hello", func(context *gin.Context) {
context.String(http.StatusOK, "[GET]node01"+port)
context.String(http.StatusOK, "[GET]-[API]-v1"+port)
})
app.POST("/hello", func(context *gin.Context) {
context.String(http.StatusOK, "[POST]node01"+port)
context.String(http.StatusOK, "[POST]-[API]-v1"+port)
})
app.GET("/ip", func(context *gin.Context) {

Loading…
Cancel
Save