#Python SDK & GitRef/GitRepository

1 messages · Page 1 of 1 (latest)

timid oyster
#

I'm testing Dagger and I'm trying to use it to build firmware (QMK, a keyboard firmware).

I want to look at the payload in each commit and change my build command accordingly (if I change a file under keyboard1 I want to run qmk compile -km foo -kb keyboard1). I've done this with GNU sed in a bash script before, just looking to port this to Dagger as a first step.

I've found dagger.GitRepository in the Python SDK, but I just don't understand how to use it at this point.

Any pointers?

buoyant heath
#

is your list of possible build targets (keyboard1 etc) statically known in advance, or dynamic?

timid oyster
#

build targets can both be dynamic and static, but for this PoC we can consider it static.

My bash script just parsed which keyboard and which keymap (map structure is predictable) and compiled that, but I guess I can either replicate that or just have daggers caching figure out which of the static build targets have changed then?

buoyant heath