From 90ac7415d36b515443fcf2e1e06c8d4d1928286e Mon Sep 17 00:00:00 2001 From: Marvin Steadfast Date: Tue, 22 Jun 2021 12:33:41 +0200 Subject: [PATCH] ci: adds homebrew --- .drone.yml | 8 ++++---- .goreleaser.yml | 24 +++++++++++++++++++++++- Makefile | 1 + don.go | 7 +++++-- 4 files changed, 33 insertions(+), 7 deletions(-) diff --git a/.drone.yml b/.drone.yml index f23c454..2207ad7 100644 --- a/.drone.yml +++ b/.drone.yml @@ -24,7 +24,7 @@ steps: - lint - name: build - image: goreleaser/goreleaser:v0.169.0 + image: goreleaser/goreleaser:v0.171.0 commands: - make build depends_on: @@ -37,10 +37,10 @@ steps: - tag - name: release - image: goreleaser/goreleaser:v0.169.0 + image: goreleaser/goreleaser:v0.171.0 environment: - GITEA_TOKEN: - from_secret: gitea_token + GIHUB_TOKEN: + from_secret: github_token commands: - goreleaser release --rm-dist depends_on: diff --git a/.goreleaser.yml b/.goreleaser.yml index fe0856c..aea1f3b 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -51,11 +51,33 @@ changelog: - "prepares release" archives: + - format: tar.gz + replacements: + darwin: macos + - format: binary + id: only-binary replacements: darwin: macos release: - gitea: + github: owner: xsteadfastx name: don + +brews: + - name: don + tap: + owner: xsteadfastx + name: homebrew-tap + commit_author: + name: Marvin Steadfast + email: marvin@xsteadfastx.org + homepage: https://git.xsfx.dev/xsteadfastx/don + install: | + bin.install "don" + test: | + system "#{bin}/don version" + +gomod: + proxy: true diff --git a/Makefile b/Makefile index 13f9741..620e81d 100644 --- a/Makefile +++ b/Makefile @@ -32,4 +32,5 @@ readme: -credit=false \ -functions \ -types \ + -skip-sub-packages \ > README.md diff --git a/don.go b/don.go index c002563..f3d26e3 100644 --- a/don.go +++ b/don.go @@ -4,9 +4,12 @@ // // Use as commandline tool // -// Download the tool from the (download page) https://git.xsfx.dev/xsteadfastx/don/releases. +// Download the tool from the (download page) https://github.com/xsteadfastx/don/releases or +// install via brew: // -// don -t 15m -r 15s -c "ssh -o StrictHostKeyChecking=no -o ConnectTimeout=10 root@container" +// brew tap xsteadfastx/tap https://github.com/xsteadfastx/homebrew-tap +// brew install don +// don -t 15m -r 15s -c "ssh -o StrictHostKeyChecking=no -o ConnectTimeout=10 root@container" // // This example checks every 15 seconds if the ssh container is ready. It would timeout with an // error after 15 minutes.