diff --git a/.goreleaser.yml b/.goreleaser.yml index 232c385c..760906de 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -32,6 +32,16 @@ builds: - 386 ldflags: - -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}} -X main.buildSource=snap + - id: deb + goos: + - linux + goarch: + - amd64 + - arm + - arm64 + - 386 + ldflags: + - -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}} -X main.buildSource=deb archives: - builds: @@ -45,6 +55,9 @@ archives: format_overrides: - goos: windows format: zip + - builds: + - deb + format: deb checksum: name_template: "checksums.txt" @@ -72,6 +85,21 @@ brews: # Your app's description. # Default is empty. description: "A simple terminal UI for docker, written in Go" + +nfpms: + - id: deb + package_name: lazydocker + license: MIT + maintainer: "Jesse Duffield " + vendor: "Jesse Duffield" + homepage: "https://github.com/jesseduffield/lazydocker" + description: "A simple terminal UI for docker, written in Go" + formats: + - deb + dependencies: + - docker + - docker-compose + #snapcrafts: # - builds: # - snap diff --git a/README.md b/README.md index 97967d36..28810545 100644 --- a/README.md +++ b/README.md @@ -223,6 +223,15 @@ yay -S lazydocker echo "alias lzd='docker run --rm -it -v /var/run/docker.sock:/var/run/docker.sock -v /yourpath/config:/.config/jesseduffield/lazydocker lazyteam/lazydocker'" >> ~/.zshrc ``` +### `.deb` Package + +You can also install `lazydocker` using a `.deb` package. This allows you to easily add it to any deb-based distribution, including Ubuntu. + +To do that, just download the latest `.deb` package from the releases page and install the package using `dpkg`: + +```sh +sudo dpkg -i lazydocker__amd64.deb +``` For development, you can build the image using: