Skip to content

Commit 33e158a

Browse files
Fixing the image building.
Signed-off-by: Alexei V. Ivanov <[email protected]>
1 parent c899dbb commit 33e158a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

scripts/test-template-aws.j2

+4-1
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,10 @@ steps:
174174
- label: "AMD: :docker: build image"
175175
depends_on: ~
176176
commands:
177-
- "docker build --build-arg max_jobs=16 --tag {{ docker_image_amd }} -f Dockerfile.rocm --progress plain ."
177+
#- "docker build --build-arg max_jobs=16 --tag {{ docker_image_amd }} -f Dockerfile.rocm --progress plain ."
178+
- "grep -i 'from base as test' Dockerfile.rocm \
179+
&& docker build --build-arg max_jobs=16 --tag {{ docker_image_amd }} -f Dockerfile.rocm --target test --progress plain . \
180+
|| docker build --build-arg max_jobs=16 --tag {{ docker_image_amd }} -f Dockerfile.rocm --progress plain ."
178181
- "docker push {{ docker_image_amd }}"
179182
plugins:
180183
- docker-login#v3.0.0:

0 commit comments

Comments
 (0)