From 244d4b3fe297919f394fec5fefe682bc4553a7be Mon Sep 17 00:00:00 2001 From: Gerald Pinder Date: Tue, 23 Dec 2025 18:44:20 -0500 Subject: [PATCH] feat: Add a platform argument for stages This will allow the templater to set the --platform arg for the FROM instruction. --- src-tsp/main.tsp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src-tsp/main.tsp b/src-tsp/main.tsp index d31621d..bf4d768 100644 --- a/src-tsp/main.tsp +++ b/src-tsp/main.tsp @@ -128,6 +128,9 @@ model Stage { /** The full image ref (image name + tag). This will be set in the FROM statement of the stage. */ from: string; + /** Defines the platform to run this stage on */ + platform?: Platform; + /** Allows a user to pass in an array of strings that are passed directly into the [`SHELL` instruction](https://docs.docker.com/reference/dockerfile/#shell). */ shell?: string;