Skip to content

Commit

Permalink
fix: Fetch all repo to build container with nesessary variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Randsw committed Oct 31, 2023
1 parent 67bc2d2 commit a80cf41
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
tags:
- '*.*.*'
env:
GO_VERSION: 1.19.1
GO_VERSION: 1.21
permissions:
contents: write
packages: write
Expand All @@ -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
Expand Down
10 changes: 5 additions & 5 deletions handlers/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()))
Expand Down

0 comments on commit a80cf41

Please sign in to comment.