Skip to content
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

[jib-cli] Add option to create an output JSON file that contains image metadata for the built image #3187

Merged
merged 8 commits into from
Apr 6, 2021

Conversation

mpeddada1
Copy link
Contributor

@mpeddada1 mpeddada1 commented Apr 5, 2021

For #3183

Usage:
Calling jib build --target=${IMAGE_REFERENCE} --image-metadata-out=/my/directory/jib-image.json will result in the creation of jib-image.json (with image details such as image digest, id, tags) in my/directory/, if the directory exists.
Same for jib jar.

@google-cla google-cla bot added the cla: yes label Apr 5, 2021
@mpeddada1 mpeddada1 changed the title [jib-cli] Add option to create jib-image.json for image being built [jib-cli] Add option to create jib-image.json for built image Apr 5, 2021
@codecov
Copy link

codecov bot commented Apr 5, 2021

Codecov Report

Merging #3187 (aaea7c0) into master (c620122) will decrease coverage by 0.00%.
The diff coverage is 50.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #3187      +/-   ##
============================================
- Coverage     71.24%   71.24%   -0.01%     
- Complexity     2326     2328       +2     
============================================
  Files           279      279              
  Lines          9836     9844       +8     
  Branches        977      977              
============================================
+ Hits           7008     7013       +5     
- Misses         2491     2493       +2     
- Partials        337      338       +1     
Impacted Files Coverage Δ Complexity Δ
...ain/java/com/google/cloud/tools/jib/cli/Build.java 18.91% <0.00%> (-0.53%) 4.00 <0.00> (ø)
.../main/java/com/google/cloud/tools/jib/cli/Jar.java 43.75% <0.00%> (-0.70%) 14.00 <0.00> (ø)
...in/java/com/google/cloud/tools/jib/cli/JibCli.java 73.07% <80.00%> (+1.64%) 4.00 <1.00> (+1.00)
...m/google/cloud/tools/jib/cli/CommonCliOptions.java 96.61% <100.00%> (+0.05%) 41.00 <1.00> (+1.00)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c620122...aaea7c0. Read the comment docs.

@chanseokoh
Copy link
Member

Let's update CHANGELOG.

jib-cli/CHANGELOG.md Outdated Show resolved Hide resolved
Co-authored-by: Chanseok Oh <chanseok@google.com>
@mpeddada1 mpeddada1 changed the title [jib-cli] Add option to create jib-image.json for built image [jib-cli] Add option to create an output JSON file that contains image metadata for the built image Apr 6, 2021
@mpeddada1 mpeddada1 merged commit ece59b9 into master Apr 6, 2021
@mpeddada1 mpeddada1 deleted the cli-implement-3183 branch April 6, 2021 19:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants