tilt-dev / tilt-extensions

Extensions for Tilt
https://tilt.dev/
Apache License 2.0
200 stars 156 forks source link

fix: pass through 'platform' arg to nerdctl #547

Closed lostrouter closed 7 months ago

lostrouter commented 7 months ago

The nerdctl extension was not passing through the platform argument to the under lying command.

tested locally with the following example

nerdctl_build(
  ref='my-docker-image', 
  context='.',
  platform='amd64'
)

output observed in the Tilt UI

Running cmd: nerdctl --namespace k8s.io build --platform amd64 -t "${EXPECTED_REF}" .