CI/CD Workflow
Facets provides various CI/CD strategies to streamline your deployment process. This document will guide you through configuring these strategies, enabling you to efficiently manage testing environments, automate promotions, and customize workflows to meet your project's needs.
How to Configure the CI/CD workflow in Facets?
- Open the Projects tab and select the required project.
- Go to the Project Settings tab and select CI/CD. Here, you will be able to define the CI/CD Flow.
- Facets provides three CI/CD strategies:
- Branch Per Environment
- Single Branch Promotion
- Advanced
Branch Per Environment
This approach allows you to map each Git branch to its respective testing environment for streamlined testing.
- Choose the condition from the dropdown and specify the value it must match.
- Select the environment to which you want to attach artifacts.
- Repeat the above steps for all the required environments in the project.
- Click Save Changes.
Single Branch Promotion
This approach allows you to map a Git branch to an environment. You will then set the promotion workflow and promote changes to other environments.
- Choose the condition from the dropdown and specify the value it must match.
- Select the environment to which you want to attach artifacts. The selected environment becomes the first environment in the flow.
- Under the Set Promotion Workflow section, all the environments will be listed. Drag and rearrange them in the required order to create the promotion hierarchy.
- Click Save Changes.
Advanced
This combines Branch per Environment and Single Branch Promotion. It enables you to customize Git rules for mapping branches to specific environments and create flexible promotion workflows.
- Select the Registration type.
- Choose between an Environment or a Release Stream. This determines whether you will use environments or release streams to create the workflow.
- Decide if you want to map any Git branch to the environment/release stream.
- If yes, map the Git branch to the environment/release stream.
- Choose the condition from the dropdown and specify the value it must match.
- Then, select the environment/release stream to which you want to attach artifacts.
- Click Add to add a new column for a different environment/release stream.
- Decide if you want to promote artifacts from one environment/release stream to another.
- If yes, under Environments/Release Streams Hierarchy, select the first environment/release stream.
- Drag and rearrange the environments/release streams in the required order to create the promotion hierarchy.
- Click Save Changes.
You have successfully created a Streamlined CI/CD Flow in Facets.
FAQ
1. Do I need to make any changes to my CI pipeline if I change the branch or environment/release stream?
Yes, if you change the branch or the associated environment/release stream, you will need to update the command in your CI pipeline setup to reflect these changes. This ensures the images are registered in the correct environment or release stream.
2. How does the "Branch Per Environment" strategy improve deployment workflows in a multi-environment setup?
The "Branch Per Environment" strategy improves deployment workflows by isolating changes in designated branches and environments, reducing the risk of conflicts and ensuring stable, environment-specific testing and deployment.
Updated 4 months ago