CI: tools: support per branch tools container
authorChristian Marangi <ansuelsmth@gmail.com>
Sun, 27 Nov 2022 18:45:38 +0000 (19:45 +0100)
committerChristian Marangi <ansuelsmth@gmail.com>
Sun, 4 Dec 2022 16:37:00 +0000 (17:37 +0100)
commitf3cb0cfdf9747ae525b5aec9775416b34d2dffe9
treebf8f3b0344b54353a327612302f952efa7c760e4
parent5fc4182f1e946ff5720dab3d69a1cb43a1320dde
CI: tools: support per branch tools container

Add support to push per branch container tools.
For anything not official stick to latest tag that correspond to test
run from master.

If we are testing something for one of the openwrt stable branch, parse
the branch name or the tag and push dedicated tools containers.

To use the stable container for local testing the branch needs to have
the prefix openwrt-[0-9][0-9].[0-9][0-9] (example openwrt-21.02-fixup)

Any branch that will match this pattern openwrt-[0-9][0-9].[0-9][0-9]
will refresh the tools container with the matching tag.
(example branch openwrt-22.03 -> tools:openwrt-22.03)
(example branch openwrt-22.03-test -> tools:openwrt-22.03)

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
(cherry picked from commit 75550771ae76fbcab4160e10b73287f918727384)
.github/workflows/tools.yml