Skip to content
This repository was archived by the owner on Jun 13, 2024. It is now read-only.

Filters #41

@joseph-njogu

Description

@joseph-njogu

What is the name of the config kind?

.circleci/config.yml

Config Tip

workflows:
version: 2
build-main:
jobs:
- build:
filters:
branches:
only: main
- publish-latest:
requires:
- build
filters:
branches:
only: main
- deploy:
requires:
- publish-latest
filters:
branches:
only: main

Give us a short description of the config kind

This tip adds the filtering on the workflows enforcing it to take place on a given git branch

Body Area

This tip will help you when deploying to production, by enforcing the deployments/publishing on a given and specific branch.

Anything Else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions