Skip to content

Commit

Permalink
Disable sbom on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
iadgovuser29 committed Jan 30, 2024
1 parent dd9e4ef commit 1952b77
Showing 1 changed file with 17 additions and 13 deletions.
30 changes: 17 additions & 13 deletions .github/workflows/create_aca_images.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: ACA Docker Image Build
name: Create ACA Docker Image
on:
push:
release:
Expand Down Expand Up @@ -82,8 +82,8 @@ jobs:
uses: docker/build-push-action@v5
with:
context: ./.ci/docker
file: Dockerfile.$FILE
tags: $TAG
file: Dockerfile.${{env.FILE}}
tags: ${{env.TAG}}
push: true
sbom: true

Expand All @@ -97,8 +97,10 @@ jobs:
- name: Checkout main
uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
# Leaving this in case we want to check if docker's sbom option below still attempts to use privileged mode in the future
# There are third party options, but requires sending password through those actions.
# - name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v3

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
Expand All @@ -111,10 +113,10 @@ jobs:
uses: docker/build-push-action@v5
with:
context: ./.ci/docker
file: Dockerfile.$FILE
tags: $TAG
file: Dockerfile.${{env.FILE}}
tags: ${{env.TAG}}
push: true
sbom: true
# sbom: true # Buildx on Windows requires privileged mode, and docker's action tries to use privileged mode

windows-compat-image: # This job uses a different build arg than the other windows job.
needs: setup
Expand All @@ -126,8 +128,10 @@ jobs:
- name: Checkout main
uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
# Leaving this in case we want to check if docker's sbom option below still attempts to use privileged mode in the future
# There are third party options, but requires sending password through those actions.
# - name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v3

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
Expand All @@ -140,11 +144,11 @@ jobs:
uses: docker/build-push-action@v5
with:
context: ./.ci/docker
file: Dockerfile.$FILE
tags: $TAG
file: Dockerfile.${{env.FILE}}
tags: ${{env.TAG}}
build-args: BASE_IMAGE_TAG=lts-windowsservercore-1809
push: true
sbom: true
# sbom: true # Buildx on Windows requires privileged mode, and docker's action tries to use privileged mode

manifest:
needs: [rocky-image, windows-11-image, windows-compat-image]
Expand Down

0 comments on commit 1952b77

Please sign in to comment.