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

tools(i): Simplify releases #3463

Merged
merged 4 commits into from
Feb 20, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
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
57 changes: 7 additions & 50 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,41 +6,18 @@ before:
- make deps:playground

builds:
- id: "defradb"
main: ./cmd/defradb
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
# A build with the playground included.
- id: "defradb_playground"
main: ./cmd/defradb
flags:
- -tags=playground
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
# A build with telemetry included.
- id: "defradb_telemetry"
# Minimal build with no extras
- id: "defradb_lite"
main: ./cmd/defradb
flags:
- -tags=telemetry
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
# A build with the playground and telemetry included.
- id: "defradb_playground_telemetry"
# Default build with playground and telemetry
- id: "defradb"
main: ./cmd/defradb
flags:
- -tags=playground,telemetry
Expand All @@ -56,13 +33,13 @@ partial:
by: target

archives:
- id: defradb_playground
- id: defradb_lite
builds:
- defradb_playground
- defradb_lite
formats: [binary]
# this name template makes the OS and Arch compatible with the results of `uname`.
name_template: >-
{{ .Binary }}_playground_{{ .Version }}_{{ .Os }}_
{{ .Binary }}_lite_{{ .Version }}_{{ .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
Expand All @@ -76,26 +53,6 @@ archives:
{{- if eq .Arch "amd64" }}x86_64
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
- id: defradb_telemetry
builds:
- defradb_telemetry
formats: [binary]
# this name template makes the OS and Arch compatible with the results of `uname`.
name_template: >-
{{ .Binary }}_telemetry_{{ .Version }}_{{ .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
- id: defradb_playground_telemetry
builds:
- defradb_playground_telemetry
formats: [binary]
# this name template makes the OS and Arch compatible with the results of `uname`.
name_template: >-
{{ .Binary }}_playground_telemetry_{{ .Version }}_{{ .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}

release:
target_commitish: '{{ .Commit }}'
Expand Down
2 changes: 1 addition & 1 deletion tools/defradb.containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ COPY go.mod go.sum Makefile ./
RUN make deps:modules
COPY . .
COPY --from=playground_build /repo/dist /repo/playground/dist/
ENV BUILD_TAGS=playground
ENV BUILD_TAGS=playground,telemetry
# manually copy libwasmer.so to fix linking issue https://github.com/wasmerio/wasmer-go/issues/281
RUN export WASMER_ARCH=$(go env GOHOSTARCH | sed "s/arm64/aarch64/") && \
export WASMER_PATH=$(go env GOMODCACHE)/github.com/wasmerio/wasmer-go@v1.0.4/wasmer/packaged/lib/linux-$WASMER_ARCH/libwasmer.so && \
Expand Down
Loading