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

Support publish multi-arch release #681

Merged
merged 2 commits into from
Jun 26, 2023
Merged

Conversation

Haleygo
Copy link
Contributor

@Haleygo Haleygo commented Jun 26, 2023

Images in dockerhub now are all linux/amd64.
Looks like release will run make build-operator-crosscompile && publish-via-docker to publish images.

--build-arg base_image=$(ALPINE_IMAGE) \
-f Docker-multiarch .

package-arch:
$(GOBUILD) -o bin/manager-$(GOARCH) main.go
CGO_ENABLED=0 GOOS=${GOOS} GOARCH=${GOARCH} $(GOBUILD) -o bin/manager-$(GOARCH) main.go
Copy link
Contributor Author

@Haleygo Haleygo Jun 26, 2023

Choose a reason for hiding this comment

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

image
seems CGO_ENABLED=0 GOOS=${GOOS} GOARCH=${GOARCH} was missing

@Haleygo Haleygo requested a review from f41gh7 June 26, 2023 11:04
Copy link
Collaborator

@f41gh7 f41gh7 left a comment

Choose a reason for hiding this comment

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

LGTM

@f41gh7 f41gh7 merged commit 8950675 into master Jun 26, 2023
@f41gh7
Copy link
Collaborator

f41gh7 commented Jun 26, 2023

Thanks!

@f41gh7 f41gh7 deleted the support-multi-arch-docker-build branch June 26, 2023 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants