We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d636fdd + 8feacaa commit ab27431Copy full SHA for ab27431
buildrunner/SourceDockerfile
@@ -3,3 +3,6 @@ FROM $DOCKER_REGISTRY/busybox:latest
3
ADD source.tar /source/
4
VOLUME /source
5
6
+# Adding unique layers to avoid image conflicts with parallel buildrunner executions
7
+ARG BUILDRUNNER_DISTRO
8
+RUN echo "Building on $BUILDRUNNER_DISTRO (random number: $((RANDOM)))" > /build_info.txt
buildrunner/__init__.py
@@ -307,6 +307,9 @@ def get_source_image(self):
307
inject=inject,
308
cache=False,
309
pull=False,
310
+ build_args={
311
+ "BUILDRUNNER_DISTRO": os.environ.get("BUILDRUNNER_DISTRO")
312
+ },
313
)
314
315
if len(built_images_info.built_images) != 1:
0 commit comments