Skip to content

Commit

Permalink
goreleaser: update sm-k6 path
Browse files Browse the repository at this point in the history
  • Loading branch information
roobre committed Nov 12, 2024
1 parent c8f5e07 commit a87160d
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ before:
# - go mod tidy
# you may remove this if you don't need go generate
# - go generate ./...
- 'true'
- "true"
builds:
- main: cmd/synthetic-monitoring-agent
goos:
Expand All @@ -25,11 +25,11 @@ archives:
- "CHANGELOG.md"
- "LICENSE"
- "README.md"
- src: "{{dir .ArtifactPath}}/k6"
- src: ./dist/{{.Os}}-{{.Arch}}/sm-k6
dst: sm-k6
strip_parent: true
checksum:
name_template: 'checksums.txt'
name_template: "checksums.txt"
snapshot:
name_template: "{{ incpatch .Version }}-next"
release:
Expand All @@ -49,18 +49,16 @@ nfpms:
contents:
- src: ./scripts/package/config/systemd/synthetic-monitoring-agent.conf
dst: /etc/synthetic-monitoring/synthetic-monitoring-agent.conf
type: 'config|noreplace'
type: "config|noreplace"
- src: ./scripts/package/config/systemd/synthetic-monitoring-agent.service
dst: /etc/systemd/system/synthetic-monitoring-agent.service

# Copy k6 as sm-k6 to prevent clashing with k6 if it's installed.
- src: ./dist/synthetic-monitoring-agent_{{.Os}}_{{.Arch}}{{ with .Amd64 }}_{{ . }}{{ end}}/k6
- src: ./dist/{{.Os}}-{{.Arch}}/sm-k6
dst: /usr/bin/sm-k6
rpm:
signature:
# Also set ${NFPM_DEFAULT_PASSPHRASE}
key_file: '{{ .Env.NFPM_SIGNING_KEY_FILE }}'
key_file: "{{ .Env.NFPM_SIGNING_KEY_FILE }}"
deb:
signature:
# Also set ${NFPM_DEFAULT_PASSPHRASE}
key_file: '{{ .Env.NFPM_SIGNING_KEY_FILE }}'
key_file: "{{ .Env.NFPM_SIGNING_KEY_FILE }}"

0 comments on commit a87160d

Please sign in to comment.