uraimo / run-on-arch-action

A Github Action that executes jobs/commands on non-x86 cpu architectures (ARMv6, ARMv7, aarch64, s390x, ppc64le, riscv64) via QEMU
BSD 3-Clause "New" or "Revised" License
682 stars 151 forks source link

Allow overriding the containerName #122

Open felfert opened 1 year ago

felfert commented 1 year ago

This PR adds a new optional parameter cachedImageTag which allows overriding the otherwise automatically generated image tag. Reading #55 #100 and #56, I came to the conclusion, that having the freedom to completely override the image tag would be most useful. There are also 2 other usecases for this:

One additional change was made: The slug() function does not strictly adhere to the spec. See comments in src/run-on-arch.js, for an explanation, why I deliberately still deviate from that (but now it is still closer to the spec).

Would be appreciated, if this could be considered for inclusion in #98

Cheers -Fritz