Skip to content

Commit 5c34348

Browse files
convert the UID to a var in Makefile
1 parent 486a93d commit 5c34348

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ REMOTE_REGISTRY := registry.kmrd.dev/iptecharch/data-server
22
TAG := $(shell git describe --tags)
33
IMAGE := $(REMOTE_REGISTRY):$(TAG)
44
TEST_IMAGE := $(IMAGE)-test
5+
UID := 10000
56

67
# go versions
78
TARGET_GO_VERSION := go1.21.4
@@ -21,7 +22,7 @@ test:
2122

2223
docker-build:
2324
ssh-add ./keys/id_rsa 2>/dev/null; true
24-
docker build --build-arg UID=10000 . -t $(IMAGE) --ssh default=$(SSH_AUTH_SOCK)
25+
docker build --build-arg UID=$(UID) . -t $(IMAGE) --ssh default=$(SSH_AUTH_SOCK)
2526

2627
docker-push: docker-build
2728
docker push $(IMAGE)

0 commit comments

Comments
 (0)