fix: default source installs to the host architecture
Installing from source on an arm64 host downloaded amd64 dependencies and built amd64 plugins, failing once `plugin:install` ran the first binary. The `TARGETARCH` and `GOARCH` make variables now default to the host architecture and remain overridable, and debian packages are labelled with the architecture they were built for. Closes #9217.
This commit is contained in:
@@ -35,8 +35,8 @@ RUN PLUGIN_MAKE_TARGET=${PLUGIN_MAKE_TARGET} \
|
||||
DOKKU_GIT_REV=${DOKKU_GIT_REV} \
|
||||
IS_RELEASE=${IS_RELEASE} \
|
||||
SKIP_GO_CLEAN=true \
|
||||
make version copyfiles \
|
||||
&& make deb-dokku
|
||||
GOARCH=amd64 make version copyfiles \
|
||||
&& DOKKU_ARCHITECTURE=amd64 GOARCH=amd64 make deb-dokku
|
||||
|
||||
FROM builder AS arm64
|
||||
|
||||
|
||||
Reference in New Issue
Block a user