We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 482f0a7 + 46d4612 commit b0beb05Copy full SHA for b0beb05
build/Dockerfile
@@ -13,7 +13,9 @@ COPY cmd ./cmd
13
COPY pkg ./pkg
14
COPY go.mod .
15
COPY go.sum .
16
-RUN go build -o server -ldflags="-X 'main.Version=$APP_VERSION'" ./cmd/playground && \
+ARG APP_VERSION=1.0.0
17
+RUN echo "Building server with version $APP_VERSION" && \
18
+ go build -o server -ldflags="-X 'main.Version=$APP_VERSION'" ./cmd/playground && \
19
GOOS=js GOARCH=wasm go build -o ./worker.wasm ./cmd/webworker && \
20
cp $(go env GOROOT)/misc/wasm/wasm_exec.js .
21
cmd/playground/main.go
@@ -18,7 +18,7 @@ import (
"go.uber.org/zap"
)
-const Version = "testing"
+var Version = "testing"
22
23
type appArgs struct {
24
packagesFile string
0 commit comments