File tree 3 files changed +10
-7
lines changed
3 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,9 @@ WORKDIR /go/src/github.com/0xsequence/waas-authenticator
14
14
15
15
ADD ./ ./
16
16
17
- RUN make build
17
+ ARG VERSION
18
+
19
+ RUN make VERSION=${VERSION} build
18
20
19
21
#
20
22
# Enclave dev image
Original file line number Diff line number Diff line change @@ -4,8 +4,6 @@ TOP := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
4
4
SHELL = bash -o pipefail
5
5
TEST_FLAGS ?= -v
6
6
7
- VERSION := $(shell grep -o 'VERSION = "[^"]* ' $(TOP ) /version.go | cut -d'"' -f2)
8
-
9
7
define run
10
8
@go run github.com/goware/rerun/cmd/rerun -watch ./ -ignore vendor bin tests data/schema -run \
11
9
'GOGC=off go build -o ./bin/$(1 ) ./cmd/$(1 ) /main.go && CONFIG=$(CONFIG ) ./bin/$(1 ) '
@@ -24,7 +22,7 @@ define build
24
22
go build -v \
25
23
-trimpath \
26
24
-buildvcs=false \
27
- -ldflags="- s -w -buildid=" \
25
+ -ldflags='-X "github.com/0xsequence/waas-authenticator.VERSION= $( VERSION ) " - s -w -buildid=' \
28
26
-o ./bin/$(1 ) \
29
27
./cmd/$(1 )
30
28
endef
@@ -56,7 +54,10 @@ test: test-clean
56
54
test-clean :
57
55
GOGC=off go clean -testcache
58
56
59
- eif : clean
57
+ eif : ensure-version clean
60
58
mkdir -p bin
61
- docker build --platform linux/amd64 --build-arg ENV_ARG=next -t waas-authenticator-builder .
59
+ docker build --platform linux/amd64 --build-arg VERSION= $( VERSION ) --build-arg ENV_ARG=next -t waas-authenticator-builder .
62
60
docker run --platform linux/amd64 -v $(TOP ) /bin:/out waas-authenticator-builder waas-auth.$(VERSION )
61
+
62
+ ensure-version :
63
+ test -n " $( VERSION) "
Original file line number Diff line number Diff line change 1
1
package waasauthenticator
2
2
3
- const VERSION = "v1.0.0-rc.4 "
3
+ var VERSION = "dev "
You can’t perform that action at this time.
0 commit comments