Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CIRCLE-12024: Collapse looks for yaml files that start with "@" for specialCase #4

Merged
merged 2 commits into from
Jun 22, 2018

Conversation

zzak
Copy link
Contributor

@zzak zzak commented Jun 22, 2018

[CIRCLE-12024]

Use cases

1. Local jobs

.circleci/
  config.yml
  jobs/
    foo.yml

With the contents of the job being:

# .circleci/jobs/foo.yml
description: my job

2. Local jobs inline in a single-file

.circleci/
  config.yml
  @jobs.yml

Because we fold these type of files under the key of the folder their in, a jobs files would need the top-level to declare jobs:.

# .circleci/@jobs.yml
jobs:
  foo:
    description: my job

3. Inline Local jobs in an orb

This could even work for orbs.

.circleci/
  orbs/
    myorb/
      @orb.yml
      @jobs.yml

Allowing flexibility for smaller orbs that don't need nested folders.

# .circleci/orbs/myorb/@jobs.yml:
jobs:
  myjob:
    description: omg a job

@zzak zzak merged commit 684e99b into master Jun 22, 2018
@zzak zzak deleted the circle-12024 branch June 22, 2018 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant