File tree 2 files changed +10
-3
lines changed
2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,10 @@ extract-from-digests:
79
79
rm / tmp/ bins/ kty
80
80
81
81
set-version :
82
- git grep -l " {{ version_placeholder }} " | grep -v " justfile" | xargs -I {} sed -i' .tmp' -e ' s/{{ version_placeholder }} /{{ version }} /g' {}
82
+ git grep -l " {{ version_placeholder }} " | \
83
+ grep -v " justfile" | \
84
+ grep -v " .rs" | \
85
+ xargs -I {} sed -i' .tmp' -e ' s/{{ version_placeholder }} /{{ version }} /g' {}
83
86
84
87
helm-build :
85
88
helm package helm --dependency-update --destination / tmp/ chart
Original file line number Diff line number Diff line change @@ -10,7 +10,11 @@ use serde::Serialize;
10
10
use super :: namespace;
11
11
use crate :: resources:: { install, DynamicClient , GetGvk , MANAGER } ;
12
12
13
- const VERSION : Option < & ' static str > = option_env ! ( "CARGO_PKG_VERSION" ) ;
13
+ lazy_static:: lazy_static! {
14
+ static ref VERSION : & ' static str = option_env!( "CARGO_PKG_VERSION" )
15
+ . map( |v| if v. contains( "0.0.0-UNSTABLE" ) { "latest" } else { v } )
16
+ . unwrap_or( "latest" ) ;
17
+ }
14
18
15
19
#[ derive( Parser , Container ) ]
16
20
pub struct Resources {
@@ -91,7 +95,7 @@ pub struct Install {
91
95
#[ arg( from_global) ]
92
96
namespace : Option < String > ,
93
97
94
- #[ arg( long, default_value_t = format!( "ghcr.io/grampelberg/kty:{}" , VERSION . unwrap_or ( "latest" ) ) ) ]
98
+ #[ arg( long, default_value_t = format!( "ghcr.io/grampelberg/kty:{}" , VERSION . to_string ( ) ) ) ]
95
99
image : String ,
96
100
}
97
101
You can’t perform that action at this time.
0 commit comments