Skip to content

Commit

Permalink
Add service release to goreleaser config
Browse files Browse the repository at this point in the history
  • Loading branch information
phwissmann committed Nov 14, 2024
1 parent 13db325 commit a13eb42
Showing 1 changed file with 44 additions and 18 deletions.
62 changes: 44 additions & 18 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,34 +37,37 @@ builds:
goos:
- linux
- windows
- darwin
goarch:
- amd64
main: .
binary: openem-ingestor-app
gobinary: echo


# TODO: add service build
# - id: "openem-ingestor-service"
# flags:
# - -trimpath
# ldflags:
# - "-s -w -X 'main.version={{.Version}}'"
# env:
# - CGO_ENABLED=0
# dir: ./cmd/openem-ingestor-service
# goos:
# - linux
# goarch:
# - amd64
# main: .
# binary: openem-ingestor-service
- id: "openem-ingestor-service"
flags:
- -trimpath
ldflags:
- "-s -w -X 'main.version={{.Version}}'"
env:
- CGO_ENABLED=0
dir: ./cmd/openem-ingestor-service
goos:
- linux
goarch:
- amd64
binary: openem-ingestor-service

archives:
- format: tar.gz
- id: "openem-ingestor-app"
builds:
- openem-ingestor-app
format: tar.gz

wrap_in_directory: true
name_template: >-
{{ .ProjectName }}_
{{ .ProjectName }}_app_
{{- .Version }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
Expand All @@ -76,7 +79,30 @@ archives:
- goos: windows
format: zip
files:
- configs/*.yaml
- src: configs/*.yaml
dst: ./
- src: configs/schemas/*.json
dst: schemas

- id: "openem-ingestor-service"
builds:
- openem-ingestor-service
format: tar.gz

wrap_in_directory: true
name_template: >-
{{ .ProjectName }}_service_
{{- .Version }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
files:
- src: configs/*.yaml
dst: ./
- src: configs/schemas/*.json
dst: schemas
changelog:
sort: asc
filters:
Expand Down

0 comments on commit a13eb42

Please sign in to comment.