question

How to set files into specific path during the deployment?

Hi There,

We want to deploy the latest update to production. But.. there are some RSA pair keys that we need to have when the release deployed to production. The RSA key files are not pushed into git repository for security reason.

So.. the idea is, we need those key pair to be available in our production server everytime we deploy the latest update into production. How we can do that? Similar like ENV variables, but this time the value is "file"

avatar
1
  • Hey Hendra, thanks for your question!

    The best way to do this is through scoped variables using the file type.

    This allows you to mount a file into the given container and this file can be either /var/run/cycle/variables/<myVariable> where myVariable is the scoped variable identifier, or, by selecting the Path option, the user can set this mount to be anywhere in the filesystem (generally).

    Hope this helps :)

    avatar
    platform
v2024.08.14.01 © 2024 Petrichor Holdings, Inc.