@@ -12,7 +12,7 @@ import { defaults, omit } from 'lodash';
1212import treeKill from 'tree-kill' ;
1313
1414import { CliCommand } from '../command' ;
15- import { evalManifestEnv , loadManifestFile } from '../manifest' ;
15+ import { loadManifestFile } from '../manifest' ;
1616
1717const chalkColors = [ chalk . green , chalk . yellow , chalk . blue , chalk . magenta , chalk . cyan ] ;
1818
@@ -180,21 +180,22 @@ export default class Run extends CliCommand {
180180 }
181181
182182 const context = { secrets : process . env } ;
183+ const evaluatedManifest = manifest . eval ( context ) ;
183184
184185 const processEnv = omit ( process . env , [ 'PROCESSOR_PROMETHEUS_PORT' ] ) ;
185186 const env = {
186187 FORCE_COLOR : 'true' ,
187188 FORCE_PRETTY_LOGGER : 'true' ,
188189 ...processEnv ,
189- ...evalManifestEnv ( manifest . deploy ?. env ?? { } , context ) ,
190+ ...evaluatedManifest . deploy ?. env ,
190191 } ;
191192
192193 const init = manifest . deploy ?. init ;
193194 if ( init && init . cmd && ! isSkipped ( { include, exclude } , 'init' ) ) {
194195 const p = new SquidProcess ( 'init' , init . cmd , {
195196 env : {
196197 ...env ,
197- ...evalManifestEnv ( init . env ?? { } , context ) ,
198+ ...init . env ,
198199 } ,
199200 cwd : squidDir ,
200201 } ) ;
@@ -208,7 +209,7 @@ export default class Run extends CliCommand {
208209 new SquidProcess ( 'api' , api . cmd , {
209210 env : {
210211 ...env ,
211- ...evalManifestEnv ( api . env ?? { } , context ) ,
212+ ...api . env ,
212213 } ,
213214 cwd : squidDir ,
214215 } ) ,
@@ -227,7 +228,7 @@ export default class Run extends CliCommand {
227228 new SquidProcess ( processor . name , processor . cmd , {
228229 env : {
229230 ...env ,
230- ...evalManifestEnv ( processor . env ?? { } , context ) ,
231+ ...processor . env ,
231232 } ,
232233 cwd : squidDir ,
233234 } ) ,
0 commit comments