Skip to content

Commit 3fa6b1f

Browse files
Gavin AguiarGavin Aguiar
authored andcommitted
Added custom image env
1 parent 1b7a5b9 commit 3fa6b1f

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/ci_docker_ded_workflow.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# This workflow will run all tests in endtoend/tests in a docker container using the latest dedicated image
22

3-
43
name: CI Docker Dedicated tests
54

65
on:

tests/utils/testutils_docker.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
_MESH_IMAGE_REPO = "mcr.microsoft.com/azure-functions/mesh"
2525
_IMAGE_URL = "https://mcr.microsoft.com/v2/azure-functions/python/tags/list"
2626
_IMAGE_REPO = "mcr.microsoft.com/azure-functions/python"
27+
_CUSTOM_IMAGE = os.getenv("IMAGE_NAME")
2728

2829

2930
@dataclass
@@ -116,7 +117,10 @@ def create_container(self, image_repo: str, image_url: str,
116117

117118
configs.env.update(env)
118119

119-
image = self.find_latest_image(image_repo, image_url)
120+
if _CUSTOM_IMAGE:
121+
image = _CUSTOM_IMAGE
122+
else:
123+
image = self.find_latest_image(image_repo, image_url)
120124

121125
container_worker_path = (
122126
f"/azure-functions-host/workers/python/{_python_version}/"

0 commit comments

Comments
 (0)