From c026643c0435eeedb14f3efc4b52e38e0af9d466 Mon Sep 17 00:00:00 2001 From: Tobias Germer Date: Mon, 16 Oct 2023 16:01:44 +0200 Subject: [PATCH] +dive -- A tool for exploring each layer in a docker image (#3670) * +dive -- A tool for exploring each layer in a docker image * +dive -- add missing git dependency * +dive -- fix deprecated skip-validate flag --- .../github.com/wagoodman/dive/package.yml | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 projects/github.com/wagoodman/dive/package.yml diff --git a/projects/github.com/wagoodman/dive/package.yml b/projects/github.com/wagoodman/dive/package.yml new file mode 100644 index 00000000..056e2d22 --- /dev/null +++ b/projects/github.com/wagoodman/dive/package.yml @@ -0,0 +1,30 @@ +distributable: + url: git+https://github.com/wagoodman/dive + ref: v{{version}} + +versions: + github: wagoodman/dive + strip: /^v/ + +build: + dependencies: + go.dev: ^1.19 + goreleaser.com: "*" + git-scm.org: "*" + script: | + goreleaser build --clean --single-target --skip=validate + mkdir -p "{{ prefix }}"/bin + mv dist/dive_$PLATFORM/dive "{{ prefix }}"/bin + env: + CGO_ENABLED: 0 + darwin/aarch64: {PLATFORM: darwin_arm64} + darwin/x86-64: {PLATFORM: darwin_amd64_v1} + linux/aarch64: {PLATFORM: linux_arm64} + linux/x86-64: {PLATFORM: linux_amd64_v1} + +provides: + - bin/dive + +test: + script: + test "$(dive --version)" = "dive {{version}}"