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

Add image digest result to remaining sample build strategies #789

Conversation

SaschaSchwarze0
Copy link
Member

@SaschaSchwarze0 SaschaSchwarze0 commented May 27, 2021

Changes

There were some build strategies remaining where the image digest result has not yet been provided. Doing this here:

  • For BuildKit, I am using the brand-new --metadata-file field. Thanks @qu1queee for pointing me to Add --metadata-file flag to output build metadata #2095. Also switching from master-rootless to nightly-rootless which is the same image without the master term.
  • For Buildah, I use the buildah images command with the --format option to access the .Digest property. I spent some time to see if I can also get the image size here. Unfortunately, the .Size property of the same command is always formatted (10.3 MB instead of the bytes count) and the raw value available in the code is not exposed. As I had to run another buildah command (after bud and push), I decided to consolidate all of them to run in a single container.

Submitter Checklist

  • Includes tests if functionality changed/was added
  • Includes docs if changes are user-facing
  • Set a kind label on this PR
  • Release notes block has been filled in, or marked NONE

Release Notes

NONE

@openshift-ci openshift-ci bot added the release-note-none Label for when a PR does not need a release note label May 27, 2021
@SaschaSchwarze0 SaschaSchwarze0 added the kind/feature Categorizes issue or PR as related to a new feature. label May 27, 2021
@SaschaSchwarze0 SaschaSchwarze0 changed the title Add image digest result to remaining sample build strategies WIP: Add image digest result to remaining sample build strategies May 28, 2021
@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label May 28, 2021
@SaschaSchwarze0 SaschaSchwarze0 changed the title WIP: Add image digest result to remaining sample build strategies Add image digest result to remaining sample build strategies May 28, 2021
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label May 28, 2021
Copy link
Contributor

@qu1queee qu1queee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look good to me. Approving. Drop you a q on alchemist shell, would be nice to get an answer there, merely for education purposes.

@qu1queee
Copy link
Contributor

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label May 31, 2021
@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label May 31, 2021
@SaschaSchwarze0
Copy link
Member Author

Conflicts resolved. May you re-lgtm ? @qu1queee

Copy link
Contributor

@HeavyWombat HeavyWombat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label May 31, 2021
@qu1queee
Copy link
Contributor

qu1queee commented Jun 1, 2021

/lgtm

@HeavyWombat
Copy link
Contributor

/approve

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jun 1, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: HeavyWombat

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 1, 2021
@openshift-merge-robot openshift-merge-robot merged commit 2903c72 into shipwright-io:main Jun 1, 2021
@adambkaplan adambkaplan added this to the release-v0.5.0 milestone Jun 10, 2021
@SaschaSchwarze0 SaschaSchwarze0 deleted the sascha-image-digest-result branch October 4, 2021 06:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. kind/feature Categorizes issue or PR as related to a new feature. lgtm Indicates that a PR is ready to be merged. release-note-none Label for when a PR does not need a release note
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants