From 3bd4b166beb3e90f3bdd8bd8cd7534a19f3c8fad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=AF=BB=E6=AC=A2?= Date: Tue, 31 Aug 2021 16:58:10 +0800 Subject: [PATCH] =?UTF-8?q?:sparkles:=20=E6=89=93=E5=8C=85v1=E7=89=88?= =?UTF-8?q?=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 4 +++- main.go | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) 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) {