Skip to content

🌱 add copy-content to goreleaser and release artifacts #3277

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

Merged
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
17 changes: 17 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,23 @@ builds:
ldflags:
- -X {{ .Env.PKG }}/pkg/version.GitCommit={{ .FullCommit }}
- -X {{ .Env.PKG }}/pkg/version.OLMVersion={{ .Tag }}
- id: copy-content
main: ./cmd/copy-content
binary: copy-content
goos:
- linux
goarch:
- amd64
- arm64
- ppc64le
- s390x
tags:
- json1
flags:
- -mod=vendor
ldflags:
- -X {{ .Env.PKG }}/pkg/version.GitCommit={{ .FullCommit }}
- -X {{ .Env.PKG }}/pkg/version.OLMVersion={{ .Tag }}
dockers:
- image_templates:
- "{{ .Env.IMAGE_REPO }}:{{ .Tag }}-amd64"
Expand Down
1 change: 1 addition & 0 deletions Dockerfile.goreleaser
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ RUN ["/busybox/ln", "-s", "/busybox/cp", "/bin/cp"]
COPY olm /bin/olm
COPY catalog /bin/catalog
COPY package-server /bin/package-server
COPY copy-content /bin/copy-content
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do I understand correctly - this is what ends up in the image we push to quay on release?

Copy link
Collaborator Author

@perdasilva perdasilva May 27, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's right. We've been shipping without it =S
Downstream has been fine because we don't use this makefile or image for building/releasing

COPY cpb /bin/cpb
EXPOSE 8080
EXPOSE 5443
Expand Down
Loading