Refactor Dockerfile for multi-architecture support#5772
Refactor Dockerfile for multi-architecture support#5772MartinSchmidt wants to merge 9 commits intowoodpecker-ci:mainfrom
Conversation
|
Surge PR preview deployment succeeded. View it at https://woodpecker-ci-woodpecker-pr-5772.surge.sh |
There was a problem hiding this comment.
well if we have agent/server also use vars why not here?
There was a problem hiding this comment.
right, I will look into that for the next part.
docker/Dockerfile.server.multiarch
Outdated
| # -------------- Build backend -------------- | ||
| FROM --platform=$BUILDPLATFORM docker.io/golang:1.25 AS build | ||
|
|
||
| # Install cross-compilation toolchains |
There was a problem hiding this comment.
cant we reuse xgo as we else would have to maintain this ourselfes
|
also if we have https://github.com/woodpecker-ci/woodpecker/blob/main/.woodpecker/docker.yaml |
aea478c to
7831902
Compare
I moved the PR to draft, i redid the dockerfile, now it can build with two targets both scratch and alpine using I will look into adding it to the pipeline when i have the time :) |
7831902 to
dc8742f
Compare
992d372 to
0b9885d
Compare
|
@6543 anonymous access to woodpecker to see pipelines status seems not to work, I have to login to see the failed build, but since I am not part of the organisation, I of cause can't. |
that should work 🤔 |
|
spellcheck failed: prettier fail: |
Yes it also often does not work for me… If I remember correctly this started after #5519. I didn't care about this too much tbh because I just can login 🤪 |
f05cb02 to
b7233fd
Compare
Enhance the Dockerfile to support multi-architecture builds, eliminating the need for local compilation dependencies. This change streamlines the build process for various platforms.
I made this to make it simpler to release the images, and keep all the work of compiling the images within the dockerfile.