File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -149,6 +149,10 @@ extension VercelOutput {
149149 arguments. contains ( " --prod " )
150150 }
151151
152+ public var nightly : Bool {
153+ arguments. contains ( " --nightly " )
154+ }
155+
152156 public var functionMemory : String {
153157 argument ( " memory " ) ?? " 512 "
154158 }
@@ -558,8 +562,9 @@ extension VercelOutput {
558562
559563 private func buildDockerProduct( _ product: Product ) async throws -> Path {
560564 let dockerToolPath = try context. tool ( named: " docker " ) . path
561- let baseImage =
562- " swift: \( context. package . toolsVersion. major) . \( context. package . toolsVersion. minor) -amazonlinux2 "
565+ let baseImage = nightly
566+ ? " swiftlang/swift:nightly- \( context. package . toolsVersion. major) . \( context. package . toolsVersion. minor) -amazonlinux2 "
567+ : " swift: \( context. package . toolsVersion. major) . \( context. package . toolsVersion. minor) -amazonlinux2 "
563568
564569 // build the product
565570 try Shell . execute (
You can’t perform that action at this time.
0 commit comments