Skip to content

Commit 17b796a

Browse files
committed
Nightly arg
1 parent 602c3c7 commit 17b796a

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

Plugins/VercelPackager/VercelOutput.swift

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff 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(

0 commit comments

Comments
 (0)