Skip to content

Commit aeb7bca

Browse files
committed
parameterize python for kubernetes dockerfile
1 parent 2a568d8 commit aeb7bca

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,11 @@ jobs:
8686
./kind create cluster --config=tests/cluster-config.yaml
8787
./kind export kubeconfig
8888
89-
docker build -f tests/Dockerfile -t scalableminds/cluster-tools:latest .
89+
docker build \
90+
--build-arg PYTHON_VERSION=${{ matrix.python-version }} \
91+
-f tests/Dockerfile \
92+
-t scalableminds/cluster-tools:latest \
93+
.
9094
./kind load docker-image scalableminds/cluster-tools:latest
9195
9296
- name: Install dependencies (without docker)

cluster_tools/tests/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
FROM python:3.11
1+
ARG PYTHON_VERSION="3.11"
2+
3+
FROM python:${PYTHON_VERSION}
24

35
COPY --from=ghcr.io/astral-sh/uv:0.4.20 /uv /bin/uv
46

0 commit comments

Comments
 (0)