Managing Infrastructure-as-Code on Git

By integrating with Bricks Action, teams can automate Blueprint management commands (such as bp bump and bp publish) to the CI workflow, allowing them to focus on coding modules while optimizing collaboration and automation.

Bluebricks recommends triggering the updateci command when a Pull Request (PR) is opened and approved or when a Git tag is assigned (e.g., for versioning).

Below is a suggested opinionated workflow that can be modified according to the team's needs:

  1. Each PR Open event creates a dependency validation and preview changes which are being added to the PR as a comment

  2. On PR Approve event, Bircks Action will bump versions, update the blueprints and publish recursively

  3. Once the publish is completed, Bricks Action will update the PR with another commit, including the new versions.

  4. On a merge event, Bricks Action won't take any action.

Attention: The updateci command automatically commits version updates once the Blueprint/Artifact is published.

This ensures that: ✅ Version changes are tracked in Git. ✅ Consistency is maintained across CI/CD workflows. ✅ Automation remains seamless without manual intervention.

Teams can integrate updateci into their CI/CD pipelines to streamline Blueprint versioning and publishing. 🚀

Action File Example

Example of a run workflow

Last updated

Was this helpful?