Closed ddavidebor closed 7 years ago
I do this by using a renderer for the image.
@seankelly do you have an example you can share ?
With #62, properties are set for os
, dist
, and language
. I use OpenStackLatentWorker, so something like:
c['workers'].append(worker.OpenStackLatentWorker(
...
block_devices=[
{'uuid': travis_image,
'volume_size': 10}])
))
@util.renderer
def travis_image(props):
...
With the extra properties available, I can make a decision on which image to use based on the dist and language.
Mmmh, got it.
I'm still interested in a discussion for this to be implemented in a way that supports the usability intended for buildbot_travis.
you can use following:
%(prop:docker-image:-buildbot/buildbot-worker)s
in docker image configuration
Note that It actually didn't work before #65
it would be really really nice if buidbot_travis allowed arbitrary docker images to be used, in a way similar to what wercker-ci and drone-ci allow.
This could be implemented separately by the language tag with a "box" tag,
What do you think about it?