@@ -33,16 +33,21 @@ if !check_bool("flakes") {
33
33
file::delete("./.envrc");
34
34
}
35
35
36
- if !variable::is_set("docker ") {
37
- let docker = variable::prompt("Do you want to generate a Dockerfile for your gadget ?", true);
38
- variable::set("docker ", docker );
36
+ if !variable::is_set("container ") {
37
+ let container = variable::prompt("Do you want to deploy your blueprint as a container ?", true);
38
+ variable::set("container ", container );
39
39
}
40
40
41
- if check_bool("docker ") {
41
+ if check_bool("container ") {
42
42
if !variable::is_set("base-image") {
43
43
let base_image = variable::prompt("What base image should be used?", "rustlang/rust:nightly");
44
44
variable::set("base-image", base_image);
45
45
}
46
+
47
+ if !variable::is_set("container-registry") {
48
+ let registry = variable::prompt("What registry will you be deploying to?", "docker.io");
49
+ variable::set("container-registry", registry);
50
+ }
46
51
} else {
47
52
file::delete("./Dockerfile");
48
53
}
@@ -72,4 +77,8 @@ if !check_bool("release-ci") {
72
77
file::delete("./.github/workflows/release.yml");
73
78
}
74
79
80
+ if variable::is_set("container-registry") || check_bool("release-ci") {
81
+ print("\x1b[1m(\x1b[31m!!!\x1b[39m) A native and/or container source has been configured. Be sure to check Cargo.toml to ensure they are correct.")
82
+ }
83
+
75
84
file::delete("./hooks");
0 commit comments