Create Custom Workflow Parameters
Last updated
Last updated
Custom workflow parameters allow you to define and manage key-value pairs that can be accessed during your software build and deployment process. This ensures that your release pipeline can use specific configurations for different environments, such as staging, production, or custom setups.
Go to the Project Config in your Aviator release project.
In the build section, fetch and select your workflow.
In the "Additional workflow parameters", click "ADD" button to define a new workflow parameter.
Enter the key (name of the variable) and the value. Instead of a custom value, you can also select a pre-defined value from the dropdown.
Key: This should be a unique identifier for the variable (e.g., user).
Value: This is the specific configuration or secret (e.g., Aviator).
After adding all necessary variables, click Save to store the configurations.
Navigate to the Environment Config for the environment where you'd like to apply custom workflow parameters (e.g., staging or production).
Note: If you haven't created any environment yet, go to your Project Config and click on "Add Environment" to create one.
In the "Additional workflow parameters" section, click the "ADD" button to define the key and value for this environment.
Save the changes to apply the parameters specific to that environment.
Go to your CI/CD workflow (GitHub Actions in this case).
Add the variables as inputs on workflow dispatch.
Create a job which prints these inputs.
On the release dashboard, cut a release to trigger the workflow.
Verify the logs of the triggered pipeline to get the value of the custom workflow parameters in the workflow.