infrahq / infra

Infra provides authentication and access management to servers and Kubernetes clusters.

Home Page:https://infrahq.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use goreleaser binary in our docker image

dnephin opened this issue · comments

Our Dockerfile builds the infra binary in a different way from our released binaries:

CGO_ENABLED=1 GOOS=linux GOARCH=$TARGETARCH \

We should use the binary from goreleaser so that we don't have different ways of building the binary.

There is generally very little value in building the binary in the Dockerfile itself. We can COPY it at the end of the Dockerfile.

With this config:

- name: Filter goreleaser config to linux only
run: go run ./test/bin/goreleaser-filter.go > .goreleaser.linux.yml

we can skip building the other platforms that won't be used by the image.

commented

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.