github_packages: fix org.opencontainers.image.created.
This commit is contained in:
parent
d9032ff01a
commit
4f57adf42f
@ -538,6 +538,7 @@ module Homebrew
|
|||||||
"prefix" => bottle.prefix,
|
"prefix" => bottle.prefix,
|
||||||
"cellar" => bottle.cellar.to_s,
|
"cellar" => bottle.cellar.to_s,
|
||||||
"rebuild" => bottle.rebuild,
|
"rebuild" => bottle.rebuild,
|
||||||
|
"date" => Time.now.strftime("%F"),
|
||||||
"tags" => {
|
"tags" => {
|
||||||
bottle_tag.to_s => {
|
bottle_tag.to_s => {
|
||||||
"filename" => filename.bintray,
|
"filename" => filename.bintray,
|
||||||
|
|||||||
@ -177,8 +177,9 @@ class GitHubPackages
|
|||||||
remote
|
remote
|
||||||
end
|
end
|
||||||
|
|
||||||
|
created_date = bottle_hash["bottle"]["date"]
|
||||||
formula_annotations_hash = {
|
formula_annotations_hash = {
|
||||||
"org.opencontainers.image.created" => Time.now.strftime("%F"),
|
"org.opencontainers.image.created" => created_date,
|
||||||
"org.opencontainers.image.description" => bottle_hash["formula"]["desc"],
|
"org.opencontainers.image.description" => bottle_hash["formula"]["desc"],
|
||||||
"org.opencontainers.image.documentation" => documentation,
|
"org.opencontainers.image.documentation" => documentation,
|
||||||
"org.opencontainers.image.license" => bottle_hash["formula"]["license"],
|
"org.opencontainers.image.license" => bottle_hash["formula"]["license"],
|
||||||
@ -225,7 +226,7 @@ class GitHubPackages
|
|||||||
tag = "#{version}.#{bottle_tag}#{rebuild}"
|
tag = "#{version}.#{bottle_tag}#{rebuild}"
|
||||||
|
|
||||||
annotations_hash = formula_annotations_hash.merge({
|
annotations_hash = formula_annotations_hash.merge({
|
||||||
"org.opencontainers.image.created" => Time.at(tag_hash["tab"]["source_modified_time"]).strftime("%F"),
|
"org.opencontainers.image.created" => created_date,
|
||||||
"org.opencontainers.image.documentation" => documentation,
|
"org.opencontainers.image.documentation" => documentation,
|
||||||
"org.opencontainers.image.ref.name" => tag,
|
"org.opencontainers.image.ref.name" => tag,
|
||||||
"org.opencontainers.image.title" => "#{formula_full_name} #{tag}",
|
"org.opencontainers.image.title" => "#{formula_full_name} #{tag}",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user