-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
implement publish #11008
implement publish #11008
Conversation
Codecov ReportPatch coverage has no change and project coverage change:
Additional details and impacted files@@ Coverage Diff @@
## main #11008 +/- ##
==========================================
- Coverage 57.93% 57.40% -0.53%
==========================================
Files 129 129
Lines 11121 11223 +102
==========================================
Hits 6443 6443
- Misses 4044 4146 +102
Partials 634 634
☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, I bikeshed all the names but they also seem fine as-is.
One thing worth mentioning is that OCI projects won't work (with include
) if they have external file dependencies like <svc>.build
or <svc>.env_file
, since it'll look in the temp/cache download directory when trying to load. I don't think that needs to block this, though
Digest: digest.FromString(string(f)), | ||
Size: int64(len(f)), | ||
Annotations: map[string]string{ | ||
"com.docker.compose": api.ComposeVersion, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
com.docker.compose.version
perhaps?
}) | ||
layer := v1.Descriptor{ | ||
MediaType: v1.MediaTypeImageLayer, | ||
Digest: digest.FromString(string(f)), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Digest: digest.FromString(string(f)), | |
Digest: digest.FromBytes(f), |
Internally, digest.FromString
will just convert back to bytes so might as well pass it directly
pkg/compose/publish.go
Outdated
Annotations: map[string]string{ | ||
"com.docker.compose": api.ComposeVersion, | ||
}, | ||
ArtifactType: "application/vnd.docker.compose.file", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if this should have a +yaml
pkg/compose/publish.go
Outdated
Annotations: map[string]string{ | ||
"com.docker.compose": api.ComposeVersion, | ||
}, | ||
ArtifactType: "application/vnd.docker.compose", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.project
maybe?
07aa128
to
ead0ce4
Compare
Signed-off-by: Nicolas De Loof <[email protected]>
ead0ce4
to
9b2675d
Compare
also adopted |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
What I did
implement
publish
command, to publish compose.yaml files as pseudo-image "layers" with a custom artifact type