openwrt / docker

Docker containers of the ImageBuilder and SDK
GNU General Public License v2.0
463 stars 76 forks source link

ci: use whole word matching for TARGET_FILTER #143

Closed moetayuko closed 1 month ago

moetayuko commented 1 month ago

If the target name is a substring of another (e.g. malta/be and malta/be64), pushing the current target image will mistakenly override the other one.

Fixes #142

example broken action: https://github.com/openwrt/docker/actions/runs/10017123606

moetayuko commented 1 month ago

@aparcar can you handle this?

aparcar commented 1 month ago

This doesn't seem to work if the regex is empty. Could you change the default here?

moetayuko commented 1 month ago

what about the updated impl?

aparcar commented 1 month ago

Thanks let's see how it goes