Skip to content

Commit 8effe3f

Browse files
committed
[Makefile] make docker build options overridable
Signed-off-by: Tariq Ibrahim <[email protected]>
1 parent b81f587 commit 8effe3f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

multi-arch.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
PUSH_ON_BUILD ?= false
1616
ATTACH_ATTESTATIONS ?= false
1717
DOCKER_BUILD_OPTIONS = --output=type=image,push=$(PUSH_ON_BUILD) --provenance=$(ATTACH_ATTESTATIONS) --sbom=$(ATTACH_ATTESTATIONS)
18-
DOCKER_BUILD_PLATFORM_OPTIONS = --platform=linux/amd64,linux/arm64
18+
DOCKER_BUILD_PLATFORM_OPTIONS ?= --platform=linux/amd64,linux/arm64
1919

2020
REGCTL ?= regctl
2121
$(DRIVER_PUSH_TARGETS): push-%:

native-only.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
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+
DOCKER_BUILD_PLATFORM_OPTIONS ?= --platform=linux/amd64
1616

1717
$(DRIVER_PUSH_TARGETS): push-%:
1818
$(DOCKER) tag "$(IMAGE)" "$(OUT_IMAGE)"

0 commit comments

Comments
 (0)