Skip to content

Commit

Permalink
sbom won't work on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
iadgovuser29 committed Jan 30, 2024
1 parent d39e1bf commit 58c9f65
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/create_aca_images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
needs: setup
runs-on: ubuntu-latest
env:
FILE: env.DOCKERFILE_ROCKY
FILE: ${{ env.DOCKERFILE_ROCKY }}
TAG: ${{ needs.setup.outputs.ROCKY_IMAGE_TAG }}
steps:
- name: Checkout main
Expand Down Expand Up @@ -90,7 +90,7 @@ jobs:
needs: setup
runs-on: windows-latest
env:
FILE: env.DOCKERFILE_WINDOWS
FILE: ${{ env.DOCKERFILE_WINDOWS }}
TAG: ${{ needs.setup.outputs.WINDOWS_IMAGE_TAG }}
steps:
- name: Checkout main
Expand All @@ -105,9 +105,10 @@ jobs:

- name: Build the docker image for ${{ github.repository }}
# docker/setup-buildx-action@v3 and docker/build-push-action@v5 do not work for Windows images.
# --sbom won't work. BuildKit not supported on Windows.
run: |
cd ./.ci/docker
docker build -f ./Dockerfile.${{env.FILE}} -t ${{env.TAG}} --sbom=true .
docker build -f ./Dockerfile.${{env.FILE}} -t ${{env.TAG}} .
- name: Push the docker image
run: |
Expand All @@ -117,7 +118,7 @@ jobs:
needs: setup
runs-on: windows-latest
env:
FILE: env.DOCKERFILE_WINDOWS
FILE: ${{ env.DOCKERFILE_WINDOWS }}
TAG: ${{ needs.setup.outputs.WINDOWS_COMPAT_IMAGE_TAG }}
steps:
- name: Checkout main
Expand All @@ -132,9 +133,10 @@ jobs:

- name: Build the docker image for ${{ github.repository }}
# docker/setup-buildx-action@v3 and docker/build-push-action@v5 do not work for Windows images.
# --sbom won't work. BuildKit not supported on Windows.
run: |
cd ./.ci/docker
docker build -f ./Dockerfile.${{env.FILE}} -t ${{env.TAG}} --build-arg BASE_IMAGE_TAG=lts-windowsservercore-1809 --sbom=true .
docker build -f ./Dockerfile.${{env.FILE}} -t ${{env.TAG}} --build-arg BASE_IMAGE_TAG=lts-windowsservercore-1809 .
- name: Push the docker image
run: |
Expand Down

0 comments on commit 58c9f65

Please sign in to comment.