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

Add common path in config #100

Open
yindia opened this issue Sep 9, 2022 · 1 comment
Open

Add common path in config #100

yindia opened this issue Sep 9, 2022 · 1 comment
Assignees
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@yindia
Copy link

yindia commented Sep 9, 2022

Let's say we have a few common paths like gen files, lib/package, and other dependencies. In the current setup, we need to add them to all the services but if we have a common config then we just need to add it at one place

example

steps:
  - label: "Triggering pipelines"
    plugins:
      - chronotc/monorepo-diff#v2.3.0:
          diff: "git diff --name-only $(head -n 1 last_successful_build)"
          interpolation: false
          env:
            - env1=env-1 # this will be appended to all env configuration
          hooks:
            - command: "echo $(git rev-parse HEAD) > last_successful_build"
          common:
                - "gen/"
                - "api/"
          watch:
            - path:
                - "ops/terraform/"
                - "ops/templates/terraform/"
              config:
                command: "buildkite-agent pipeline upload ops/.buildkite/pipeline.yml"
                label: "Upload pipeline"
                retry:
                  automatic:
                  - limit: 2
                    exit_status: -1
                agents:
                  queue: performance
                artifacts:
                  - "logs/*"
                env:
                  - FOO=bar
            - path: 
                - "foo-service/"
              config:
                trigger: "deploy-foo-service"
                label: "Triggered deploy"
                build:
                  message: "Deploying foo service"
                  env:
                    - HELLO=123
                    - AWS_REGION
          wait: true
@adikari adikari added enhancement New feature or request help wanted Extra attention is needed labels Nov 3, 2022
@adikari adikari self-assigned this Mar 24, 2023
@adikari
Copy link
Owner

adikari commented Mar 24, 2023

@evalsocket I kind of understand your proposal here but would be more helpful if you elaborate more on the use case that you have. We can then explore how we could resolve the issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants