mirror of https://github.com/0xERR0R/blocky.git
another one
This commit is contained in:
parent
88af824a10
commit
5c20f01680
|
@ -52,7 +52,7 @@ RUN --mount=type=bind,target=. \
|
||||||
go build \
|
go build \
|
||||||
-tags static \
|
-tags static \
|
||||||
-v \
|
-v \
|
||||||
-ldflags="-X github.com/0xERR0R/blocky/util.Version=${VERSION} -X github.com/0xERR0R/blocky/util.BuildTime=${BUILD_TIME}" \
|
-ldflags="-X github.com/0xERR0R/blocky/util.Version=${VERSION} -X github.com/0xERR0R/blocky/util.BuildTime=${BUILD_TIME} -X github.com/0xERR0R/blocky/util.Architecture=${GOARCH}${TARGETVARIANT}" \
|
||||||
-o /bin/blocky
|
-o /bin/blocky
|
||||||
|
|
||||||
RUN apk add --no-cache libcap && \
|
RUN apk add --no-cache libcap && \
|
||||||
|
|
|
@ -21,4 +21,5 @@ func printVersion(_ *cobra.Command, _ []string) {
|
||||||
fmt.Println("blocky")
|
fmt.Println("blocky")
|
||||||
fmt.Printf("Version: %s\n", util.Version)
|
fmt.Printf("Version: %s\n", util.Version)
|
||||||
fmt.Printf("Build time: %s\n", util.BuildTime)
|
fmt.Printf("Build time: %s\n", util.BuildTime)
|
||||||
|
fmt.Printf("Architecture: %s\n", util.Architecture)
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,4 +6,6 @@ var (
|
||||||
Version = "undefined"
|
Version = "undefined"
|
||||||
// BuildTime build time of the binary
|
// BuildTime build time of the binary
|
||||||
BuildTime = "undefined"
|
BuildTime = "undefined"
|
||||||
|
// Architecture current CPU architecture
|
||||||
|
Architecture = "amd64"
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue