Skip to content

Support multiple image tags in build-docker-create using image-file#61

Merged
agrasth merged 3 commits intojfrog:mainfrom
agrasth:support-multi-tag-build
Apr 24, 2025
Merged

Support multiple image tags in build-docker-create using image-file#61
agrasth merged 3 commits intojfrog:mainfrom
agrasth:support-multi-tag-build

Conversation

@agrasth
Copy link
Collaborator

@agrasth agrasth commented Apr 9, 2025

  • All tests passed. If this feature is not already covered by the tests, I added new tests.
  • All static analysis checks passed.
  • This pull request is on the dev branch.
  • I used gofmt for formatting the code before submitting the pull request.

Support Multiple Docker Image Tags in build-docker-create
📌 What’s New
This PR enhances the build-docker-create command to support multiple image tags in the --image-file input. Previously, the command handled only a single tag–digest pair. With this change, users can now:

  • Provide a comma-separated list of image tags in the file.
  • Automatically process and generate build-info for each image tag.
  • Improve build metadata accuracy when multiple tags reference the same digest.

🔍 Implementation Details

  • Parsed the image-file to handle multiple tag–digest pairs.
  • Iterated over each image tag to generate build-info accordingly.
  • Ensured backward compatibility with existing single-tag behavior.

@agrasth agrasth force-pushed the support-multi-tag-build branch from 51678d2 to d6a5e9f Compare April 9, 2025 22:16
@agrasth agrasth force-pushed the support-multi-tag-build branch from d6a5e9f to cbf8e5b Compare April 11, 2025 09:25
@agrasth agrasth added the safe to test Approve running integration tests on a pull request label Apr 11, 2025
@agrasth agrasth requested a review from bhanurp April 11, 2025 09:27
@agrasth agrasth force-pushed the support-multi-tag-build branch from 7d2221a to eaaaab6 Compare April 11, 2025 11:32
@agrasth agrasth force-pushed the support-multi-tag-build branch from eaaaab6 to 53c702c Compare April 14, 2025 06:57
@bhanurp bhanurp removed the safe to test Approve running integration tests on a pull request label Apr 21, 2025
@agrasth agrasth force-pushed the support-multi-tag-build branch from 0b5eb7e to c35f2ff Compare April 21, 2025 19:45
@agrasth agrasth added the safe to test Approve running integration tests on a pull request label Apr 21, 2025
@agrasth agrasth force-pushed the support-multi-tag-build branch from 89af590 to e785c5b Compare April 22, 2025 09:06
@agrasth agrasth merged commit 072d541 into jfrog:main Apr 24, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

safe to test Approve running integration tests on a pull request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants