Skip to content

Commit c7a707e

Browse files
mabrarovpatrick-stephens
authored andcommitted
ci: sanity check of the built Windows docker image.
Signed-off-by: Marat Abrarov <[email protected]>
1 parent ce81b97 commit c7a707e

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/call-build-images.yaml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,8 @@ jobs:
395395
permissions:
396396
contents: read
397397
packages: write
398+
env:
399+
IMAGE: ${{ inputs.registry }}/${{ inputs.image }}:windows-${{ matrix.windows-base-version }}-${{ inputs.version }}
398400
steps:
399401
- name: Checkout repository
400402
uses: actions/checkout@v5
@@ -423,12 +425,19 @@ jobs:
423425

424426
- name: Build the production images
425427
run: |
426-
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 }} -f ./dockerfiles/Dockerfile.windows .
428+
docker build -t $IMAGE --build-arg FLB_NIGHTLY_BUILD=${{ inputs.unstable }} --build-arg WINDOWS_VERSION=ltsc${{ matrix.windows-base-version }} -f ./dockerfiles/Dockerfile.windows .
429+
shell: bash
430+
431+
- name: Sanity check of the production images
432+
run: |
433+
docker run --rm -t $IMAGE --help
434+
shell: bash
427435

428436
- name: Push the production images
429437
if: inputs.push
430438
run: |
431-
docker push ${{ inputs.registry }}/${{ inputs.image }}:windows-${{ matrix.windows-base-version }}-${{ inputs.version }}
439+
docker push $IMAGE
440+
shell: bash
432441

433442
# We cannot use this action as it requires privileged mode
434443
# uses: docker/build-push-action@v6

0 commit comments

Comments
 (0)