-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[improve][build] Use project version with commit hash as docker tag #24325
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
Please check that test image builds are also consistent. |
|
@lhotari Done. |
|
@nodece I remember having some problems with git-commit-id-plugin configuration in the past when someone builds the source code directly without git. Since docker.tag is now set at the top level, it would also be necessary to revisit the |
|
|
What I mean is that the current |
|
@lhotari |
What is the default docker.tag in this case? Please test the docker build from the source package so that we don't break that. |
|
btw. We could consider upgrading the deprecated |
The plugin is Java 11+, so for Maven Shade Java 8 tests to work, the plugin would have to be disabled when running on Java 8 in the existing |
If no Do you have any idea? Or keep
Ok, I will open a new PR to upgrade this plugin. |
|
@lhotari Ping |
|
Ping @lhotari |
we could move git-commit-id-no-git profile to the main pom.xml so that things would work also in the case where the build is run for the source distribution. That would be the most obvious solution. The profile should get activated only if docker.tag isn't set. |
Signed-off-by: Zixuan Liu <[email protected]>
Signed-off-by: Zixuan Liu <[email protected]>
Signed-off-by: Zixuan Liu <[email protected]>
Signed-off-by: Zixuan Liu <[email protected]>
Signed-off-by: Zixuan Liu <[email protected]>
|
@lhotari Done. |
Motivation
The PR #24168 introduced a regression where the
pulsar:${project.version}-${git.commit.id.abbrev}Docker image cannot be pulled in thepulsar-allDockerfile, because we didn't build and push that to the DockerHub.We consistently pushed both the
latestand${project.version}-${git.commit.id.abbrev}tags to DockerHub in the past. However, the only tag we require is the uniquely identifiable${project.version}-${git.commit.id.abbrev}. Thelatesttag can be ignored for our use case.We recommend using the
${project.version}-${git.commit.id.abbrev}format instead oflatest, providing clearer traceability and avoiding ambiguity.Modifications
-Ddocker.tag=custom-tagis the right path:docker.tagvalue fromlatestto${project.version}-${git.commit.id.abbrev}.Documentation
docdoc-requireddoc-not-neededdoc-complete