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"

Hendra Gunawan...

    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 :)

    Christopher Aubuchon...

Join the conversation

Sign in with your Cycle account to reply to this thread.

v2026.06.11.01 · © 2026 Petrichor Holdings, Inc.
Cookies

Cookies Preferences

We run basic, anonymous analytics by default to measure site traffic. By clicking "Accept," you allow additional cookies for advanced app improvements and tailored advertising. Choose what you share by clicking "Customize."