File tree Expand file tree Collapse file tree 6 files changed +15
-18
lines changed Expand file tree Collapse file tree 6 files changed +15
-18
lines changed Original file line number Diff line number Diff line change @@ -203,7 +203,7 @@ impl Opts {
203
203
skip_route_creation : None ,
204
204
keep_existing_routes : None ,
205
205
non_interactive : false ,
206
- skip_upgrade : false ,
206
+ upgrade : false ,
207
207
} )
208
208
. await ?;
209
209
Original file line number Diff line number Diff line change @@ -56,9 +56,9 @@ pub struct Opts {
56
56
#[ clap( long) ]
57
57
unstable_compression : Option < config:: build:: Compression > ,
58
58
59
- /// Skip upgrading actors
59
+ /// Upgrade existing actors with the new build after publishing
60
60
#[ clap( long) ]
61
- skip_upgrade : bool ,
61
+ upgrade : bool ,
62
62
63
63
// Docker options
64
64
/// Specify a pre-built Docker image instead of building from a Dockerfile
@@ -174,7 +174,7 @@ impl Opts {
174
174
version_name,
175
175
build_name : self . name . clone ( ) ,
176
176
runtime,
177
- skip_upgrade : self . skip_upgrade ,
177
+ upgrade : self . upgrade ,
178
178
} ,
179
179
)
180
180
. await ?;
Original file line number Diff line number Diff line change @@ -31,9 +31,9 @@ pub struct Opts {
31
31
#[ clap( long) ]
32
32
non_interactive : bool ,
33
33
34
- /// Skip upgrading actors
34
+ /// Update existing actors with the new build after deploying
35
35
#[ clap( long) ]
36
- skip_upgrade : bool ,
36
+ upgrade : bool ,
37
37
}
38
38
39
39
impl Opts {
@@ -65,7 +65,7 @@ impl Opts {
65
65
skip_route_creation : self . skip_route_creation ,
66
66
keep_existing_routes : self . keep_existing_routes ,
67
67
non_interactive : self . non_interactive ,
68
- skip_upgrade : self . skip_upgrade ,
68
+ upgrade : self . upgrade ,
69
69
} )
70
70
. await ?;
71
71
Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ pub struct DeployOpts<'a> {
91
91
pub skip_route_creation : Option < bool > ,
92
92
pub keep_existing_routes : Option < bool > ,
93
93
pub non_interactive : bool ,
94
- pub skip_upgrade : bool ,
94
+ pub upgrade : bool ,
95
95
}
96
96
97
97
pub async fn deploy ( opts : DeployOpts < ' _ > ) -> Result < Vec < Uuid > > {
@@ -258,7 +258,7 @@ pub async fn deploy(opts: DeployOpts<'_>) -> Result<Vec<Uuid>> {
258
258
filter_tags : opts. filter_tags . clone ( ) ,
259
259
build_tags : opts. build_tags . clone ( ) ,
260
260
version_name : opts. version . clone ( ) ,
261
- skip_upgrade : opts. skip_upgrade ,
261
+ upgrade : opts. upgrade ,
262
262
} ,
263
263
)
264
264
. await ?;
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ pub struct Input {
26
26
pub build_name : String ,
27
27
pub runtime : config:: build:: Runtime ,
28
28
#[ serde( default ) ]
29
- pub skip_upgrade : bool ,
29
+ pub upgrade : bool ,
30
30
}
31
31
32
32
#[ derive( Serialize ) ]
@@ -64,7 +64,7 @@ impl task::Task for Task {
64
64
input. build_name . clone ( ) ,
65
65
input. build_tags . clone ( ) ,
66
66
& input. runtime ,
67
- input. skip_upgrade ,
67
+ input. upgrade ,
68
68
)
69
69
. await ?;
70
70
@@ -83,7 +83,7 @@ async fn build_and_upload(
83
83
build_name : String ,
84
84
extra_build_tags : Option < HashMap < String , String > > ,
85
85
runtime : & Runtime ,
86
- skip_upgrade : bool ,
86
+ upgrade : bool ,
87
87
) -> Result < Uuid > {
88
88
task. log ( "" ) ;
89
89
@@ -171,8 +171,7 @@ async fn build_and_upload(
171
171
}
172
172
complete_res. context ( "complete_res" ) ?;
173
173
174
- // Upgrade actors
175
- if !skip_upgrade {
174
+ if upgrade {
176
175
task. log ( format ! ( "[Upgrading Actors]" ) ) ;
177
176
let res = apis:: actors_api:: actors_upgrade_all (
178
177
& ctx. openapi_config_cloud ,
@@ -193,8 +192,6 @@ async fn build_and_upload(
193
192
res. count,
194
193
if res. count == 1 { "" } else { "s" }
195
194
) ) ;
196
- } else {
197
- task. log ( format ! ( "[Skipping Actor Upgrade]" ) ) ;
198
195
}
199
196
200
197
let hub_origin = & ctx. bootstrap . origins . hub ;
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ pub struct Input {
18
18
pub filter_tags : Option < HashMap < String , String > > ,
19
19
pub build_tags : Option < HashMap < String , String > > ,
20
20
pub version_name : Option < String > ,
21
- pub skip_upgrade : bool ,
21
+ pub upgrade : bool ,
22
22
}
23
23
24
24
#[ derive( Serialize ) ]
@@ -132,7 +132,7 @@ async fn perform_builds(
132
132
version_name : version_name. to_string ( ) ,
133
133
build_name : build_name. to_string ( ) ,
134
134
runtime : build. runtime . clone ( ) ,
135
- skip_upgrade : input. skip_upgrade ,
135
+ upgrade : input. upgrade ,
136
136
} ,
137
137
)
138
138
. await ?;
You can’t perform that action at this time.
0 commit comments