ci: adds homebrew

This commit is contained in:
Marvin Steadfast 2021-06-22 12:33:41 +02:00
parent 39f399bea6
commit 90ac7415d3
4 changed files with 33 additions and 7 deletions

View File

@ -24,7 +24,7 @@ steps:
- lint - lint
- name: build - name: build
image: goreleaser/goreleaser:v0.169.0 image: goreleaser/goreleaser:v0.171.0
commands: commands:
- make build - make build
depends_on: depends_on:
@ -37,10 +37,10 @@ steps:
- tag - tag
- name: release - name: release
image: goreleaser/goreleaser:v0.169.0 image: goreleaser/goreleaser:v0.171.0
environment: environment:
GITEA_TOKEN: GIHUB_TOKEN:
from_secret: gitea_token from_secret: github_token
commands: commands:
- goreleaser release --rm-dist - goreleaser release --rm-dist
depends_on: depends_on:

View File

@ -51,11 +51,33 @@ changelog:
- "prepares release" - "prepares release"
archives: archives:
- format: tar.gz
replacements:
darwin: macos
- format: binary - format: binary
id: only-binary
replacements: replacements:
darwin: macos darwin: macos
release: release:
gitea: github:
owner: xsteadfastx owner: xsteadfastx
name: don 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

View File

@ -32,4 +32,5 @@ readme:
-credit=false \ -credit=false \
-functions \ -functions \
-types \ -types \
-skip-sub-packages \
> README.md > README.md

5
don.go
View File

@ -4,8 +4,11 @@
// //
// Use as commandline tool // 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:
// //
// 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" // 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 // This example checks every 15 seconds if the ssh container is ready. It would timeout with an