diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 87ec5f7..cb16603 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -4,7 +4,7 @@ on: tags: - '*.*.*' env: - GO_VERSION: 1.19.1 + GO_VERSION: 1.21 permissions: contents: write packages: write @@ -15,6 +15,8 @@ jobs: steps: - name: checkout uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: Docker meta id: meta uses: docker/metadata-action@v5 diff --git a/handlers/handlers.go b/handlers/handlers.go index 218dbaa..fee3ec6 100644 --- a/handlers/handlers.go +++ b/handlers/handlers.go @@ -72,11 +72,11 @@ func GetHealth(w http.ResponseWriter, r *http.Request) { enc := json.NewEncoder(w) w.Header().Set("Content-Type", "application/json; charset=utf-8") resp := map[string]string{ - "name": "Kubeinfo", - "status": "OK", - "tag": tag, - "hash": hash, - "date": date, + "app_name": "Kubeinfo", + "status": "OK", + "tag": tag, + "hash": hash, + "date": date, } if err := enc.Encode(resp); err != nil { logger.Error("Error while encoding JSON response", zap.String("err", err.Error()))