Commit 8a7a0d4 1 parent ea8b8f1 commit 8a7a0d4 Copy full SHA for 8a7a0d4
File tree 6 files changed +36
-11
lines changed
6 files changed +36
-11
lines changed Original file line number Diff line number Diff line change 1
1
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
2
2
#
3
- # Generated on 2024-05-21T10:07:54Z by kres 0290180 .
3
+ # Generated on 2024-05-28T00:03:10Z by kres bcb280a .
4
4
5
5
name : default
6
6
concurrency :
30
30
- generic
31
31
if : (!startsWith(github.head_ref, 'renovate/') && !startsWith(github.head_ref, 'dependabot/'))
32
32
steps :
33
+ - name : gather-system-info
34
+ id : system-info
35
+ uses : kenchan0130/actions-system-info@v1.3.0
36
+ continue-on-error : true
37
+ - name : print-system-info
38
+ run : |
39
+ MEMORY_GB=$((${{ steps.system-info.outputs.totalmem }}/1024/1024/1024))
40
+
41
+ OUTPUTS=(
42
+ "CPU Core: ${{ steps.system-info.outputs.cpu-core }}"
43
+ "CPU Model: ${{ steps.system-info.outputs.cpu-model }}"
44
+ "Hostname: ${{ steps.system-info.outputs.hostname }}"
45
+ "NodeName: ${NODE_NAME}"
46
+ "Kernel release: ${{ steps.system-info.outputs.kernel-release }}"
47
+ "Kernel version: ${{ steps.system-info.outputs.kernel-version }}"
48
+ "Name: ${{ steps.system-info.outputs.name }}"
49
+ "Platform: ${{ steps.system-info.outputs.platform }}"
50
+ "Release: ${{ steps.system-info.outputs.release }}"
51
+ "Total memory: ${MEMORY_GB} GB"
52
+ )
53
+
54
+ for OUTPUT in "${OUTPUTS[@]}";do
55
+ echo "${OUTPUT}"
56
+ done
57
+ continue-on-error : true
33
58
- name : checkout
34
59
uses : actions/checkout@v4
35
60
- name : Unshallow
Original file line number Diff line number Diff line change 2
2
3
3
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
4
4
#
5
- # Generated on 2024-05-21T10:07:54Z by kres 0290180 .
5
+ # Generated on 2024-05-28T00:03:10Z by kres bcb280a .
6
6
7
7
ARG TOOLCHAIN
8
8
@@ -13,7 +13,7 @@ FROM ghcr.io/siderolabs/fhs:v1.7.0 AS image-fhs
13
13
# runs markdownlint
14
14
FROM docker.io/node:22.2.0-alpine3.19 AS lint-markdown
15
15
WORKDIR /src
16
- RUN npm i -g markdownlint-cli@0.40 .0
16
+ RUN npm i -g markdownlint-cli@0.41 .0
17
17
RUN npm i sentences-per-line@0.2.1
18
18
COPY .markdownlint.json .
19
19
COPY ./README.md ./README.md
@@ -24,7 +24,7 @@ FROM scratch AS proto-specs
24
24
ADD api/storage/storage.proto /api/storage/
25
25
26
26
# base toolchain image
27
- FROM ${TOOLCHAIN} AS toolchain
27
+ FROM --platform=${BUILDPLATFORM} ${TOOLCHAIN} AS toolchain
28
28
RUN apk --update --no-cache add bash curl build-base protoc protobuf-dev
29
29
30
30
# build tools
Original file line number Diff line number Diff line change 1
1
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
2
2
#
3
- # Generated on 2024-05-21T10:07:54Z by kres 0290180 .
3
+ # Generated on 2024-05-28T00:03:10Z by kres bcb280a .
4
4
5
5
# common variables
6
6
@@ -23,7 +23,7 @@ GRPC_GATEWAY_VERSION ?= 2.20.0
23
23
VTPROTOBUF_VERSION ?= 0.6.0
24
24
GOIMPORTS_VERSION ?= 0.21.0
25
25
DEEPCOPY_VERSION ?= v0.5.6
26
- GOLANGCILINT_VERSION ?= v1.58.2
26
+ GOLANGCILINT_VERSION ?= v1.59.0
27
27
GOFUMPT_VERSION ?= v0.6.0
28
28
GO_VERSION ?= 1.22.3
29
29
GO_BUILDFLAGS ?=
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ require (
10
10
github.com/prometheus/client_golang v1.19.0
11
11
github.com/siderolabs/discovery-api v0.1.4
12
12
github.com/siderolabs/discovery-client v0.1.8
13
- github.com/siderolabs/gen v0.4.8
13
+ github.com/siderolabs/gen v0.5.0
14
14
github.com/siderolabs/go-debug v0.3.0
15
15
github.com/stretchr/testify v1.9.0
16
16
go.uber.org/zap v1.27.0
Original file line number Diff line number Diff line change @@ -40,8 +40,8 @@ github.com/siderolabs/discovery-api v0.1.4 h1:2fMEFSMiWaD1zDiBDY5md8VxItvL1rDQRS
40
40
github.com/siderolabs/discovery-api v0.1.4 /go.mod h1:kaBy+G42v2xd/uAF/NIe383sjNTBE2AhxPTyi9SZI0s =
41
41
github.com/siderolabs/discovery-client v0.1.8 h1:8WhJiNyVmjZ0F+tSfeaDyQ04n02lRK2dh/CvWp+zlnY =
42
42
github.com/siderolabs/discovery-client v0.1.8 /go.mod h1:djZDsGuXOclDfMfur5mYfzFO1xasnIIL6ejyReOsFL8 =
43
- github.com/siderolabs/gen v0.4.8 h1:VNpbmDLhkXp7qcSEkKk1Ee7vU2afs3xvHrWLGR2UuiY =
44
- github.com/siderolabs/gen v0.4.8 /go.mod h1:7ROKVHHB68R3Amrd4a1ZXz/oMrXWF3Mg3lSEgnkJY5c =
43
+ github.com/siderolabs/gen v0.5.0 h1:Afdjx+zuZDf53eH5DB+E+T2JeCwBXGinV66A6osLgQI =
44
+ github.com/siderolabs/gen v0.5.0 /go.mod h1:1GUMBNliW98Xeq8GPQeVMYqQE09LFItE8enR3wgMh3Q =
45
45
github.com/siderolabs/go-debug v0.3.0 h1:C8t7jbac5Va2eYu9QRXXEGsy3Vz5xOEVo0TDwVJH268 =
46
46
github.com/siderolabs/go-debug v0.3.0 /go.mod h1:DonqzIQOm3+qof020meFwJ2gXI5Jv/x4Dj27FyUW4aE =
47
47
github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg =
Original file line number Diff line number Diff line change @@ -8,8 +8,8 @@ package landing
8
8
9
9
import (
10
10
"embed"
11
- "fmt"
12
11
"html/template"
12
+ "io"
13
13
"io/fs"
14
14
"net/http"
15
15
"net/url"
@@ -64,7 +64,7 @@ func Handler(state *state.State, logger *zap.Logger) http.Handler {
64
64
mux .HandleFunc ("/inspect" , func (w http.ResponseWriter , r * http.Request ) {
65
65
if err := InspectHandler (w , r , state ); err != nil {
66
66
w .WriteHeader (http .StatusInternalServerError )
67
- fmt . Fprint (w , "Oops, try again" )
67
+ io . WriteString (w , "Oops, try again" ) //nolint:errcheck
68
68
logger .Error ("failed to return the page:" , zap .Error (err ))
69
69
}
70
70
})
You can’t perform that action at this time.
0 commit comments