Skip to content

Commit 427bb48

Browse files
Add build options for Docker image attestation control
Docker enables provenance by default which creates "manifest list" instead of standard image. This causes issues when we generate a Docker manifest with multi arch images later in the pipeline. Signed-off-by: Rajath Agasthya <[email protected]>
1 parent f258dbe commit 427bb48

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

deployments/container/native-only.mk

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
DOCKER_BUILD_PLATFORM_OPTIONS = --platform=linux/amd64
15+
PUSH_ON_BUILD ?= false
16+
ATTACH_ATTESTATIONS ?= false
17+
DOCKER_BUILD_PLATFORM_OPTIONS ?= --platform=linux/amd64
18+
DOCKER_BUILD_OPTIONS = --output=type=image,push=$(PUSH_ON_BUILD) --provenance=$(ATTACH_ATTESTATIONS) --sbom=$(ATTACH_ATTESTATIONS)
1619

1720
$(PUSH_TARGETS): push-%:
1821
$(DOCKER) tag "$(IMAGE)" "$(OUT_IMAGE)"

0 commit comments

Comments
 (0)