diff --git a/.drone.yml b/.drone.yml index fa46eab..f3f1295 100644 --- a/.drone.yml +++ b/.drone.yml @@ -9,7 +9,9 @@ steps: use_cache: true username: docker@1780395505853616 password: l4rQkKdtIOlHKkTv - auto_tag: true +# auto_tag: true + tags: + - v1 when: event: push branch: master \ No newline at end of file diff --git a/main.go b/main.go index 1c0031d..d3af88e 100644 --- a/main.go +++ b/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) {