Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix goreleaser build and update dependencies #54

Merged
merged 6 commits into from
Sep 11, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Clean goreleaser build
  • Loading branch information
bbyers-apptio committed Jun 20, 2024
commit efde201281475000723d07fd3d5a1e9bf54ce7f6
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ vendor/
dist/
bin
*.tar.gz

kr8
17 changes: 10 additions & 7 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
project_name: kr8
version: 2
before:
hooks:
- go mod download
Expand All @@ -13,8 +14,7 @@ builds:
ldflags: -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}}
binary: kr8
archives:
-
format: tar.gz
- format: tar.gz
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
files:
- licence*
Expand Down Expand Up @@ -43,25 +43,28 @@ nfpms:
-
vendor: Apptio TechOps
homepage: "https://github.com/apptio/kr8"
maintainer: 'Apptio, an IBM Company'
description: "Opinionated configuration management tool for Kubernetes Cluster"
license: MIT
formats:
- rpm
- deb
bindir: /usr/local/bin
brews:
-
tap:
owner: apptio
name: homebrew-tap
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
- name: kr8
url_template: "https://github.com/apptio/kr8/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
url_headers:
- "Accept: application/octet-stream"
- 'Authorization: bearer #{ENV["HOMEBREW_TAP_GITHUB_TOKEN"]}'
download_strategy: CurlDownloadStrategy
bbyers-apptio marked this conversation as resolved.
Show resolved Hide resolved

commit_author:
name: release
email: release@apptio.com

homepage: "https://kr8.rocks"
description: "Opinionated configuration management tool for Kubernetes Cluster"
license: MIT
install: |
bin.install "kr8"
bin.install "scripts/kr8-helpers"
Expand Down
15 changes: 13 additions & 2 deletions Taskfile.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,20 @@
version: '2'

tasks:
default:
cmds:
- task: build

build:
desc: Build kr8 for your local system
cmds:
- go build

build-snapshot:
desc: Build a snapshot for all platforms using goreleaser
cmds:
- goreleaser release --snapshot --clean --skip=homebrew,docker

tasks:
mkdocs:
desc: Install mkdocs
cmds:
Expand All @@ -17,4 +29,3 @@ tasks:
cmds:
- pipenv run mkdocs build
- pipenv run mkdocs gh-deploy