-
Notifications
You must be signed in to change notification settings - Fork 103
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
feat(docker): Add support for multi-platform build #563
base: master
Are you sure you want to change the base?
Conversation
@@ -35,6 +35,7 @@ type ( | |||
Provider Provider `json:"-"` | |||
EnvVariables []EnvVariable `json:"-"` | |||
Mounts []*Mount `json:"mounts"` | |||
Platforms string `json:"platforms"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be an array?
Platforms string `json:"platforms"` | |
Platforms []string `json:"platforms"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah! That will make things easier
job, err = s.jobs.Find(job.ID) | ||
if err != nil { | ||
return nil, err | ||
for platform := range strings.Split(repo.Platforms, ";") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for platform := range strings.Split(repo.Platforms, ";") { | |
for _,platform := range repo.Platforms { |
@belsakn |
@MrCyjaneK will check |
This pull request close #559
Since docker already support multiarch by using qemu, it would be cool to have abstruse support it also,
Commands required to setup:
Currently there is no gui for setting platforms (and it is not likely that I'll do that.. I have no idea how frontend works), so in database you need to update
platforms
row with something like:linux/amd64;linux/arm64
After that trigger a build and you will see this: