Skip to content

Commit

Permalink
dockerfiles: speed up Windows builds
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick Stephens <[email protected]>
  • Loading branch information
patrick-stephens committed Jan 27, 2025
1 parent d8fa9e3 commit 22795fc
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/call-build-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ jobs:
# This takes a long time...
call-build-windows-container:
name: Windows container images
runs-on: windows-${{ matrix.windows-base-version }}-8-cores
runs-on: windows-${{ matrix.windows-base-version }}
environment: ${{ inputs.environment }}
needs:
- call-build-images-meta
Expand Down Expand Up @@ -403,11 +403,7 @@ jobs:

- name: Build the production images
run: |
docker build -t ${{ inputs.registry }}/${{ inputs.image }}:windows-${{ matrix.windows-base-version }}-${{ inputs.version }} \
--build-arg FLB_NIGHTLY_BUILD=${{ inputs.unstable }} \
--build-arg WINDOWS_VERSION=ltsc${{ matrix.windows-base-version }} \
--build-arg BUILD_PARALLEL=8 \
-f ./dockerfiles/Dockerfile.windows .
docker build -t ${{ inputs.registry }}/${{ inputs.image }}:windows-${{ matrix.windows-base-version }}-${{ inputs.version }} --build-arg FLB_NIGHTLY_BUILD=${{ inputs.unstable }} --build-arg WINDOWS_VERSION=ltsc${{ matrix.windows-base-version }} --build-arg BUILD_PARALLEL=4 -f ./dockerfiles/Dockerfile.windows .
docker push ${{ inputs.registry }}/${{ inputs.image }}:windows-${{ matrix.windows-base-version }}-${{ inputs.version }}
# We cannot use this action as it requires privileged mode
Expand Down

0 comments on commit 22795fc

Please sign in to comment.