skopeo 0.1.31 (new formula)

Closes #31889.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
This commit is contained in:
Brendan Germain 2018-07-11 15:33:42 -04:00 committed by Dominyk Tiller
parent 774bf4cc15
commit 115fa96747
No known key found for this signature in database
GPG key ID: FE19AEFCF658C6F6

25
Formula/skopeo.rb Normal file
View file

@ -0,0 +1,25 @@
class Skopeo < Formula
desc "Work with remote images registries"
homepage "https://github.com/projectatomic/skopeo"
url "https://github.com/projectatomic/skopeo/archive/v0.1.31.tar.gz"
sha256 "f41121044ddca07afa63788302caf3582a653269c9601f7528003693d9807726"
depends_on "go" => :build
depends_on "gpgme"
def install
ENV["GOPATH"] = buildpath
(buildpath/"src/github.com/projectatomic/skopeo").install buildpath.children
cd "src/github.com/projectatomic/skopeo" do
system "make", "binary-local"
bin.install "skopeo"
prefix.install_metafiles
end
end
test do
cmd = "#{bin}/skopeo --override-os linux inspect docker://busybox"
output = shell_output(cmd)
assert_match "docker.io/library/busybox", output
end
end