Skip to content

Commit

Permalink
Add Docker image deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
ymtdzzz committed Jun 30, 2024
1 parent 9679a2e commit c213475
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,26 @@ brews:
owner: ymtdzzz
name: homebrew-tap
token: "{{ .Env.TAP_GITHUB_TOKEN }}"

dockers:
- image_templates:
- 'ymtdzzz/otel-tui:{{ .Tag }}-amd64'
use: buildx
build_flag_templates:
- "--pull"
- "--platform=linux/amd64"
dockerfile: Dockerfile.goreleaser
- image_templates:
- 'ymtdzzz/otel-tui:{{ .Tag }}-arm64'
use: buildx
build_flag_templates:
- "--pull"
- "--platform=linux/arm64"
goarch: arm64
dockerfile: Dockerfile.goreleaser

docker_manifests:
- name_template: 'ymtdzzz/otel-tui:{{ .Tag }}'
image_templates:
- 'ymtdzzz/otel-tui:{{ .Tag }}-amd64'
- 'ymtdzzz/otel-tui:{{ .Tag }}-arm64'
7 changes: 7 additions & 0 deletions Dockerfile.goreleaser
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM gcr.io/distroless/static-debian12:latest

COPY otel-tui /

USER nonroot

CMD [ "/otel-tui" ]

0 comments on commit c213475

Please sign in to comment.