From ff5f07cf30b0a558ce1a4682f7a1c6f177b328a5 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 17:07:14 +0800 Subject: [PATCH] =?UTF-8?q?:sparkles:=20=E9=BB=98=E8=AE=A4=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 | 6 +++--- main.go | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.drone.yml b/.drone.yml index 61e9071..6224c20 100644 --- a/.drone.yml +++ b/.drone.yml @@ -9,9 +9,9 @@ steps: use_cache: true username: docker@1780395505853616 password: l4rQkKdtIOlHKkTv -# auto_tag: true - tags: - - v3 + auto_tag: true +# tags: +# - v3 when: event: push branch: master \ No newline at end of file diff --git a/main.go b/main.go index 0e86236..b57b4d4 100644 --- a/main.go +++ b/main.go @@ -106,11 +106,11 @@ func main() { ipStr := strings.Join(getIps(), ",") app.GET("/hello", func(context *gin.Context) { - context.String(http.StatusOK, "[GET]-[API]-[v3]\n"+ipStr) + context.String(http.StatusOK, "[GET]-[API]-[latest]\n"+ipStr) }) app.POST("/hello", func(context *gin.Context) { - context.String(http.StatusOK, "[POST]-[API]-[v3]\n"+ipStr) + context.String(http.StatusOK, "[POST]-[API]-[latest]\n"+ipStr) }) app.GET("/ip", func(context *gin.Context) {