-
Notifications
You must be signed in to change notification settings - Fork 0
3. Common Tasks
drichelson edited this page Nov 9, 2024
·
1 revision
In your newly created GitHub repo you'll notice some example yaml files under the project/
directory. These are intended to be a starting point, so you can create additional yaml files for your own flags.
- Create a flag overview file for the project. Each flag's basic properties are defined at the project level. This includes name, description, and the type of flag (boolean, booleanRollout, etc). This file should be created in the
project/flags
directory. The naming convention is<flagName>.yml
. Check out the example flags as a starting point. - Create environment-specific flag config files. Under each environment directory in
project/environments
, create a file with the same name as the flag file. This file will contain the environment-specific configuration for the flag. The naming convention is<flagName>.yml
. Check out the example flags as a starting point. - Pull Request checks will validate your changes for basic well-formedness.
- Commit your changes to the main branch (Either directly or via a Pull Request). The GitHub Action will automatically pick up the changes and update the backend service.
- Update the flag file in the environment directory.
- Commit your changes to the main branch (Either directly or via a Pull Request). The GitHub Action will automatically pick up the changes and update the backend service.
- Navigate to your Terraform config
- Add a new environment to the
environments
variable and execute the changes. - Once your Terraform run has been applied, you can add flag configs for the environment manually, or by copying the contents of an existing environment.