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

Filters #41

Open
joseph-njogu opened this issue Sep 5, 2023 · 2 comments
Open

Filters #41

joseph-njogu opened this issue Sep 5, 2023 · 2 comments

Comments

@joseph-njogu
Copy link

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

@KyleTryon
Copy link
Contributor

Thanks for the tip @joseph-njogu! If you're interested in making a PR, we'd love to give you the appropriate credit. Contributors will appear on https://config.tips/about/.

If you just want to share the tip as an issue that's just fine too! We'd love to give the opportunity for someone else to commit this too!

@joseph-njogu
Copy link
Author

joseph-njogu commented Sep 6, 2023 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants