7676 with :
7777 images : name/app
7878 tag-sha : true
79- tag-match : \\d{1,3}.\\d{1,3}.\\d{1,3}
79+ tag-match : v(.*)
80+ tag-match-group : 1
8081 -
8182 name : Set up QEMU
8283 uses : docker/setup-qemu-action@v1
@@ -114,7 +115,8 @@ Following inputs can be used as `step.with` keys
114115| `tag-sha` | Bool | Add git short SHA as Docker tag (default `false`) |
115116| `tag-edge` | Bool | Enable edge branch tagging (default `false`) |
116117| `tag-edge-branch` | String | Branch that will be tagged as edge (default `repo.default_branch`) |
117- | `tag-match` | String | RegExp to match against a Git tag and use match group as Docker tag |
118+ | `tag-match` | String | RegExp to match against a Git tag and use first match as Docker tag |
119+ | `tag-match-group` | Number | Group to get if `tag-match` matches (default `0`) |
118120| `tag-match-latest` | Bool | Set `latest` Docker tag if `tag-match` matches (default `true`) |
119121| `tag-schedule` | String | [Template](#schedule-tag) to apply to schedule tag (default `nightly`) |
120122| `sep-tags` | String | Separator to use for tags output (default `\n`) |
@@ -136,13 +138,13 @@ Following outputs are available
136138
137139# ## `tag-match` examples
138140
139- | Git tag | `tag-match` | Docker tag
140- |-------------------------|--------------------------------|- ------------------|
141- | `v1.2.3` | `\\d{1,3}.\\d{1,3}.\\d{1,3}` | `1.2.3` |
142- | `v2.0.8-beta.67` | `\\d{1,3}.\\d{1,3}.\\d{1,3}.*` | `2.0.8-beta.67` |
143- | `v2.0.8-beta.67` | `\\d{1,3} .\\d{1,3} ` | `2.0` |
144- | `release1` | `\\d{1,3}.\\d{1,3}` | `release1` |
145- | `20200110-RC2` | `\\d+` | `20200110` |
141+ | Git tag | `tag-match` | `tag-match-group` | Docker tag
142+ |-------------------------|------------------------------------|-------------------| ------------------|
143+ | `v1.2.3` | `\\d{1,3}.\\d{1,3}.\\d{1,3}` | `0` | ` 1.2.3` |
144+ | `v2.0.8-beta.67` | `v(.*)` | `1` | ` 2.0.8-beta.67` |
145+ | `v2.0.8-beta.67` | `v( \\d.\\d)` | `1 ` | `2.0` |
146+ | `release1` | `\\d{1,3}.\\d{1,3}` | `0` | `release1` |
147+ | `20200110-RC2` | `\\d+` | `0` | `20200110` |
146148
147149# ## Schedule tag
148150
0 commit comments