Commit 1edc1c7
committed
ci(template): Change operator version behaviour
Previously, we only used 0.0.0-prXXX for the image tag if the PR
targeted the main branch. This could lead to surprising results,
because some PRs might be raised against a different feature
branch (potentially part of a different PR). In these cases, the
current version (most likely 0.0.0-dev) would be used and the
-prXXX was appended to it, resulting in a surprising version tag
0.0.0-dev-prXXX.
To address this, we decided to only use the current version for
PRs raised against release branches where this version scheme makes
sense (that behaviour was also our intend when we initially wrote
that script). For ANY other branch, we now always use 0.0.0-prXXX.
We could further improve the logic by checking if the current
version differs from 0.0.0-dev and then use the version as is
with a -prXXX suffix. If the version is 0.0.0-dev, we use the
established 0.0.0-prXXX version.1 parent ba82093 commit 1edc1c7
1 file changed
Lines changed: 10 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
| 154 | + | |
154 | 155 | | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
159 | 160 | | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
160 | 166 | | |
161 | 167 | | |
162 | 168 | | |
| |||
0 commit comments