Skip to content

Commit

Permalink
Ditch Docker and Make for pure Nix
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Baillie <[email protected]>
  • Loading branch information
martinbaillie committed Mar 21, 2024
1 parent 312153f commit 2de2e5f
Show file tree
Hide file tree
Showing 13 changed files with 920 additions and 834 deletions.
3 changes: 0 additions & 3 deletions .envrc
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
if ! has nix_direnv_version || ! nix_direnv_version 2.0.0; then
source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/2.0.0/direnvrc" "sha256-gMHKKyEOq/T0XmHKgz+pN+fUQC/1EKPAuOtYM95lLnU="
fi
use flake
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
github: [ martinbaillie ]
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
.idea/
.direnv/
test/
dist/
vault-plugin-secrets-github
vault-plugin-secrets-github-*
SHA256SUM*
todo.org
*.pem
/.direnv
/.direnv
result
57 changes: 57 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
gomod:
proxy: true

report_sizes: false

builds:
- goos:
- darwin
- windows
- linux
- freebsd
- netbsd
- openbsd
- solaris
goarch:
- "386"
- amd64
- arm
- arm64
mod_timestamp: "{{ .CommitTimestamp }}"
flags:
- -trimpath
ldflags:
- -s
- -w
- -extldflags
- -static
- -X {{.ModulePath}}/github.projectName={{.ProjectName}}
- -X {{.ModulePath}}/github.projectDocs=https://{{.ModulePath}}
- -X github.com/prometheus/common/version.BuildDate={{.Date}}
- -X github.com/prometheus/common/version.Revision={{.Commit}}
- -X github.com/prometheus/common/version.Version={{.Version}}
- -X github.com/prometheus/common/version.Branch={{.Branch}}
- -X github.com/prometheus/common/version.BuildUser={{.Env.USER}}
no_unique_dist_dir: true
binary: "{{ .ProjectName }}-{{ .Os }}-{{ .Arch }}"

archives:
- format: binary
name_template: "{{ .ProjectName }}-{{ .Os }}-{{ .Arch }}"

checksum:
name_template: 'SHA256SUMS'
algorithm: sha256

signs:
- id: sha256
artifacts: checksum

sboms:
- artifacts: binary

snapshot:
name_template: "{{ incpatch .Version }}-rc"

release:
draft: true
261 changes: 0 additions & 261 deletions Makefile

This file was deleted.

Loading

0 comments on commit 2de2e5f

Please sign in to comment.