Skip to content

Commit

Permalink
fic CI
Browse files Browse the repository at this point in the history
  • Loading branch information
syepes committed Feb 8, 2023
1 parent 9e66991 commit 0b9ef06
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,6 @@ jobs:
with:
distribution: goreleaser
version: latest
args: release --rm-dist
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
13 changes: 7 additions & 6 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,13 @@ builds:
binary: network_exporter
archives:
- format: tar.gz
name_template: "{{ .ProjectName }}-{{ .Version }}.{{ .Os }}-{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
replacements:
darwin: macOS
linux: Linux
windows: Windows
amd64: x86_64
rlcp: true
name_template: >-
{{ .ProjectName }}-{{ .Version }}.
{{- title .Os }}-
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
format_overrides:
- goos: windows
format: zip
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ build-push:
docker buildx build --push --platform linux/amd64,linux/arm/v7,linux/arm64/v8 -t ${IMAGE_NAME}:${VERSION} .

build-local:
goreleaser release --skip-publish --snapshot --rm-dist
goreleaser release --skip-publish --snapshot --clean

lint:
golangci-lint run

0 comments on commit 0b9ef06

Please # to comment.