build(docker): add Windows images (#1640)

* feat(docker): add Windows images

* Create ciwindows.Dockerfile

* freddy?

* no it's camel

* have as many words with him as you like

* better go get more men

* an eye for an arm, ricky

* mcr.microsoft.com/windows/nanoserver:ltsc2022

* make a dime an hour for the company man

---------

Co-authored-by: ze0s <43699394+zze0s@users.noreply.github.com>
This commit is contained in:
Kyle Sanderson 2024-09-02 02:51:48 -07:00 committed by GitHub
parent cf2da14073
commit 46b3ae8a0f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 51 additions and 1 deletions

View file

@ -166,6 +166,7 @@ jobs:
- linux/ppc64le
# - linux/riscv64
- linux/s390x
- windows/amd64
needs: [web, test]
steps:
- name: Checkout
@ -213,7 +214,7 @@ jobs:
uses: docker/build-push-action@v6
with:
context: .
file: ./ci.Dockerfile
file: ${{ startsWith(matrix.platform, 'windows') && './ciwindows.Dockerfile' || './ci.Dockerfile' }}
platforms: ${{ matrix.platform }}
outputs: type=image,name=${{ env.REGISTRY_IMAGE }},push-by-digest=true,name-canonical=true,push=${{ (github.event.pull_request.head.repo.full_name == github.repository || github.event_name != 'pull_request') && 'true' || 'false' }}
labels: ${{ steps.meta.outputs.labels }}