aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 79d43c5..d2ea7fa 100644
--- a/src/main.c
+++ b/src/main.c
@@ -546,8 +546,8 @@ int main(int argc, char *argv[]) {
// Rewrite release environment output (i.e. set package origin(s) to point to the deployment server, etc.)
char specfile[PATH_MAX];
sprintf(specfile, "%s/%s.yml", ctx.storage.delivery_dir, env_name);
- msg(OMC_MSG_L3, "Rewriting release spec file %s\n", path_basename(specfile));
- delivery_rewrite_spec(&ctx, specfile);
+ msg(OMC_MSG_L3, "Rewriting release spec file (stage 1): %s\n", path_basename(specfile));
+ delivery_rewrite_spec(&ctx, specfile, DELIVERY_REWRITE_SPEC_STAGE_1);
msg(OMC_MSG_L1, "Rendering mission templates\n");
delivery_mission_render_files(&ctx);
@@ -561,6 +561,9 @@ int main(int argc, char *argv[]) {
msg(OMC_MSG_L1 | OMC_MSG_WARN, "Docker image building is disabled\n");
}
+ msg(OMC_MSG_L3, "Rewriting release spec file (stage 2): %s\n", path_basename(specfile));
+ delivery_rewrite_spec(&ctx, specfile, DELIVERY_REWRITE_SPEC_STAGE_2);
+
if (globals.enable_artifactory) {
msg(OMC_MSG_L1, "Uploading artifacts\n");
delivery_artifact_upload(&ctx);