Skip to content

Commit 136d26e

Browse files
committed
Fix containered build with Deployer driver #3
1 parent 352dda7 commit 136d26e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/containered.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
55
use colored::Colorize;
66
use serde::{Deserialize, Serialize};
7+
use std::collections::BTreeSet;
78
use std::fs;
89
use std::io::Write;
910
use std::path::PathBuf;
@@ -87,8 +88,15 @@ pub fn generate_single_pipeline_config(
8788
let config_filepath = DEPL_CONFIG_FILE.replace("{pipeline-name}", pipeline.title.as_str());
8889
log(format!("Prev config on {config_filepath:?}"));
8990

91+
let actions = pipeline
92+
.actions
93+
.iter()
94+
.map(|used| used.definition(&config.actions).unwrap().clone())
95+
.collect::<BTreeSet<_>>();
96+
9097
let minimal_project_config = DeployerProjectOptions {
9198
pipelines: vec![pipeline],
99+
actions,
92100
project_name: config.project_name.to_owned(),
93101
cache_files: Default::default(),
94102
ignore_files: Default::default(),

0 commit comments

Comments
 (0)