GoogleContainerTools / GoogleContainerTools/jib

Conditions and regex for tags

Open
#2,259 1 comment 0 reactions 0 assignees View on GitHub
area/jib-gradle-plugin area/jib-maven-plugin enhancement priority:p4 question
Dominant language
Java
Stars
14.5k
Forks
1.5k
PR merge metrics
No merged PRs in 30d

Description

General configuration
```
1.2.3-SNAPSHOT
...

com.google.cloud.tools
jib-maven-plugin
${jib-maven-plugin.version}



latest
${GIT_LOCAL_BRANCH}


```
This is OK, but not suitable for many cases. The more productive way is to have tag with`1.2.3` for `master` and e.g. `1.2.3-my-branch-SNAPSHOT` for `my/branch`. Or something like this. We also need replace `/` to `-` because slash is incorrect for Docker naming etc.

So. It will be good to have more flexible tag settings. E.g.
```

${project.version}
${project.version}-${GIT_LOCAL_BRANCH}

```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.