Skip to content

Commit 9d5a63c

Browse files
committed
[docker] build from desired tag in test-box
test-box always built `main` even when tagged, this uses the tag as a version selector.
1 parent b682e63 commit 9d5a63c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

scripts/docker/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
# --------------------------------------------------------------------
44
VARIANT ?= build
55
TAG ?= main
6+
BARGS += --build-arg EC_VERSION=$(TAG)
67

78
# --------------------------------------------------------------------
89
.PHONY: default build publish
@@ -12,6 +13,7 @@ default: build
1213
build:
1314
docker build -f Dockerfile.$(VARIANT) \
1415
--platform linux/amd64 \
16+
$(BARGS) \
1517
-t ghcr.io/easycrypt/ec-$(VARIANT)-box:$(TAG) \
1618
.
1719

0 commit comments

Comments
 (0)