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 Windows image builds #18

Open
sixeyed opened this issue Mar 23, 2020 · 12 comments
Open

Support Windows image builds #18

sixeyed opened this issue Mar 23, 2020 · 12 comments

Comments

@sixeyed
Copy link

sixeyed commented Mar 23, 2020

The GitHub runner windows-2019 has Docker installed, so you can build and push images with a workflow like this:

Would be great if this action supported Windows image builds on Windows runners.

@zappy-shu
Copy link
Contributor

Hi @sixeyed, thanks for your feedback. This is interesting and I can see it being useful. Currently the action runs using a Linux container hence it wouldn't work with the Windows hosts so this will need some investigating on the best way to support this. I will discuss this with our PM and see if we can get it prioritized

@adamgins
Copy link

FYI this is working with Windows https://github.com/mr-smithers-excellent/docker-build-push but hitting some issues on second push.

We have Linux images and Windows based images (for On prem customers).

@giallu
Copy link

giallu commented Nov 11, 2021

I worked several days to build a Windows image locally with all our stack (C++/Qt based application) only to find out I could not build and use the final image with an action. Sad 😄

@rshamsnejad
Copy link

I would also be interested in this action working on Windows.

@Antonytm
Copy link

I am also interested in this action working on Windows.

@ScottGuymer
Copy link

Are there any plans to have this action work on windows too?

@ian-flores
Copy link

Hey folks, just to add traction here, we would also benefit from having this action working on Windows. Is there any way folks outside of Docker (like myself) can contribute to do this?

@Antonytm
Copy link

@ian-flores
I ended up with the usage mr-smithers-excellent/docker-build-push@v5 action template.

gesellix added a commit to docker-client/echo-server that referenced this issue Jul 31, 2022
Windows containers require a special treatment due to buildx not being compatible, yet.

Relates to docker/buildx#176
Relates to docker/build-push-action#18
gesellix added a commit to docker-client/echo-server that referenced this issue Jul 31, 2022
Windows containers require a special treatment due to buildx not being compatible, yet.

Relates to docker/buildx#176
Relates to docker/build-push-action#18
ghost pushed a commit to camunda/camunda that referenced this issue Nov 24, 2022
11040: ci(smoke-test): multi-arch container smoke test r=megglos a=megglos

## Description

Docker builds and smoke tests are only run on Linux machines as building docker containers on macOS and windows runners introduces complexity to the CI setup that we consider not worth the effort:
- macOS runners require the setup of [colima as a docker runtime](actions/runner-images#6216) which adds another 1.5-2m to the runtime
- on macOS testcontainers failed to detect the docker environment unless [additional environment variables](https://www.testcontainers.org/features/configuration/#customizing-docker-host-detection) have been set 
- some docker related actions are not supported on windows runners like [`docker/build-push-action`](docker/build-push-action#18 (comment))
- the docker setup on Githubs windows runners seems to be bound to the `windows/amd64` platform, see e.g. this [log](https://github.com/camunda/zeebe/actions/runs/3500015748/jobs/5862231609)

Usage of native arm64 runners is listed as a separate sub-task on #10986.


## Related issues

closes #11020



Co-authored-by: Meggle (Sebastian Bathke) <[email protected]>
Co-authored-by: Sebastian Bathke (Meggle) <[email protected]>
@bkalcho
Copy link

bkalcho commented Dec 15, 2022

Will this be implemented in the near future?

@pl4nty
Copy link

pl4nty commented Oct 25, 2023

As of last week, buildkit master can build basic Windows images. But it might take a while for tests, releases, buildx/actions-toolkit integration, and availability in GitHub hosted runners. Partially tracked in moby/buildkit#616

@andymcblane
Copy link

Also keen on this feature!

@bosch-ch
Copy link

bosch-ch commented Jul 1, 2024

Yes please!! Would help our adoption of Github Actions no end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests