Commit 9613874
committed
Patch:ci:Allow the maptool image to be built for any branch
container.yml builds the maptool container image only for a push to trunk, and
it always uses the tag "trunk". A branch under review therefore has no image,
and tools that consume the image cannot test that branch.
gh-actions-mapserver has this problem: it converts the maps with
ghcr.io/navit-gps/navit/maptool:trunk.
This change adds the workflow_dispatch trigger and takes the tag from the
branch name. A push to trunk still produces the tag "trunk", so nothing
changes for the existing image.
The branch name reaches the shell through the environment, and not through the
command line, because a branch name is untrusted input. A slash in a branch
name becomes a hyphen, because a tag cannot contain a slash.1 parent 9f7ed95 commit 9613874
1 file changed
Lines changed: 14 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
7 | 11 | | |
8 | 12 | | |
9 | 13 | | |
| |||
13 | 17 | | |
14 | 18 | | |
15 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
16 | 29 | | |
17 | 30 | | |
18 | 31 | | |
| |||
29 | 42 | | |
30 | 43 | | |
31 | 44 | | |
32 | | - | |
| 45 | + | |
0 commit comments