Variable substitution in config inside a zip folder

Hi team,

I am using Octopus tool and want to replace variables inside a config file which is inside a zip folder. Can it be possible to perform variable substitution for the config which is inside the zip folder? I want to do it without unzipping the folder. Please let me know.

Thanks much.

Hi @sohilberg

Thanks for getting in touch! Octopus is not able to perform variable substitution on a configuration file inside of the package. The package needs to be extracted before any files can be configured.

Octopus consumes packages with the expectation that they are ready to be extracted at the target. It would be possible using scripts to extract your zip package, perform the variable substitution on files, then use a script step to zip the directory back up and transfer it to where you need it to be.

I believe the above method is the best way to achieve what you are after here.

Does this help?

Let me know if you have any further thoughts or questions here.

Best regards,
Daniel

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.