Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
jlebon committed Oct 21, 2022
1 parent 9addd2c commit c573a4b
Show file tree
Hide file tree
Showing 6 changed files with 45 additions and 5 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion pkg/builds/cosa_v1.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package builds

// generated by 'make schema'
// source hash: 1e32ab25dfdd0724f8e8246008b9d91b88a40e9ea834cf779ab0da818bf1cf25
// source hash: ce57421ef973f926c59065fd4eb122d5d22fe76681f952376091631178ce5dc1

type AdvisoryDiff []AdvisoryDiffItems

Expand Down Expand Up @@ -148,6 +148,7 @@ type Image struct {
Comment string `json:"comment,omitempty"`
Digest string `json:"digest,omitempty"`
Image string `json:"image"`
Tags []Tag `json:"tags,omitempty"`
}

type Koji struct {
Expand All @@ -169,3 +170,5 @@ type S3 struct {
Key string `json:"key,omitempty"`
PublicURL string `json:"public-url,omitempty"`
}

type Tag string
13 changes: 12 additions & 1 deletion pkg/builds/schema_doc.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Generated by ./generate-schema.sh
// Source hash: 1e32ab25dfdd0724f8e8246008b9d91b88a40e9ea834cf779ab0da818bf1cf25
// Source hash: ce57421ef973f926c59065fd4eb122d5d22fe76681f952376091631178ce5dc1
// DO NOT EDIT

package builds
Expand Down Expand Up @@ -60,6 +60,7 @@ var generatedSchemaJSON = `{
],
"optional": [
"digest",
"tags",
"comment"
],
"properties": {
Expand All @@ -77,6 +78,16 @@ var generatedSchemaJSON = `{
"$id": "#/image/image",
"type": "string",
"title": "Image"
},
"tags": {
"$id": "#/image/tags",
"type": "array",
"title": "Tags",
"items": {
"$id": "#/image/tags/item",
"title": "Tag",
"type": "string"
}
}
}
},
Expand Down
3 changes: 2 additions & 1 deletion src/cmd-push-container-manifest
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ def main():
arch = 'x86_64'
buildmetas[arch][args.metajsonname] = {
'image': args.repo,
'digest': manifest['digest']
'digest': manifest['digest'],
'tags': args.tags
}
buildmeta.write(artifact_name=args.metajsonname)

Expand Down
11 changes: 11 additions & 0 deletions src/v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
],
"optional": [
"digest",
"tags",
"comment"
],
"properties": {
Expand All @@ -71,6 +72,16 @@
"$id": "#/image/image",
"type": "string",
"title": "Image"
},
"tags": {
"$id": "#/image/tags",
"type": "array",
"title": "Tags",
"items": {
"$id": "#/image/tags/item",
"title": "Tag",
"type": "string"
}
}
}
},
Expand Down

0 comments on commit c573a4b

Please sign in to comment.