CI: tools: support per branch tools container
authorChristian Marangi <ansuelsmth@gmail.com>
Sun, 27 Nov 2022 18:45:38 +0000 (19:45 +0100)
committerJosef Schlehofer <pepe.schlehofer@gmail.com>
Sun, 4 Dec 2022 15:28:18 +0000 (16:28 +0100)
commit5bc5df10d813b26b0ce5a816cfcfc501320229c6
treeb9c1d6c9f0dc1807892c2756577ccc18c7b24175
parent0943f4dc99f3e6498415f7700023c61ee3880eee
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