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

release: provide docker images #123

Merged
merged 5 commits into from
Nov 7, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
13 changes: 12 additions & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,15 @@ builds:
ldflags:
- -X github.com/elastic/elastic-agent-changelog-tool/internal/version.CommitHash={{.ShortCommit}}
- -X github.com/elastic/elastic-agent-changelog-tool/internal/version.SourceDateEpoch={{.CommitDate}}
- -X github.com/elastic/elastic-agent-changelog-tool/internal/version.Tag={{.Tag}}
- -X github.com/elastic/elastic-agent-changelog-tool/internal/version.Tag={{.Tag}}
dockers:
- image_templates:
- "docker.elastic.co/observability-ci/{{.ProjectName}}"
- "docker.elastic.co/observability-ci/{{.ProjectName}}:{{ .Tag }}"
skip_push: true
build_flag_templates:
- "--pull"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM docker.io/library/alpine:3.15.6

COPY elastic-agent-changelog-tool /usr/bin/elastic-agent-changelog-tool

ENTRYPOINT ["/usr/bin/elastic-agent-changelog-tool"]