From d79e2bf22c09a230526de2006bf80b50ec6122a5 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Wed, 10 Apr 2024 09:22:18 -0400 Subject: Apply staged rewrites --- src/main.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src') 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); -- cgit