pcimcioch / gitlab-ci-kotlin-dsl

Kotlin DSL for generating Gitlab CI yaml files
Apache License 2.0
35 stars 4 forks source link

Multiple Cache #7

Open MrAolen opened 1 week ago

MrAolen commented 1 week ago

Hi !

Thanks for this beautiful DSL to create Gitlab CI pipeline.

I would to create multiple cache on a job. You can have an example right here in official documentation : https://docs.gitlab.com/ee/ci/caching/#use-multiple-caches :

test-job:
  stage: build
  cache:
    - key:
        files:
          - Gemfile.lock
      paths:
        - vendor/ruby
    - key:
        files:
          - yarn.lock
      paths:
        - .yarn-cache/
  script:
    - bundle config set --local path 'vendor/ruby'
    - bundle install
    - yarn install --cache-folder .yarn-cache
    - echo Run tests...

Is there a way to define mutiple caches with something that I missed?

Best regards !

pcimcioch commented 11 hours ago

Hi!

This DSL was not updated for some time, so this might have changed. I hope I will have some time this week and I'll take a look, it should be easy to add