Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to link yaml file in concourse?

In my task I have

file: tasks/build-task-config.yml

unknown artifact source: 'tasks' in task config file path 'tasks/build-task-config.yml'

I'm running concourse via docker-compose

  • ci/
    • pipeline.yml
    • tasks/
      • build-task-config.yml

Above is my directory structure.

This is how I run fly

fly -t tutorial set-pipeline -c ./ci/main-pipeline.yml -p test-frontend

  1. How I can resolve this issue?
  2. How do paths works in Concourse ?

Edit: I've tried with path ci/tasks/build-task-config.yml but it's also not working

like image 634
hejkerooo Avatar asked Nov 20 '25 10:11

hejkerooo


1 Answers

You need an input to the task called tasks. This may come from a get: step, or as the output of a previous task. Most likely you have a get with your repo that has this code (let's pretend it's called source). If that's the case, then your task should look like this

- task: build-task-config # Or whatever name you want
  file: source/ci/tasks/build-task-config.yml
  ...

Everything has to be relative to an input in a task, if it's not part of the base image.

like image 161
Josh Ghiloni Avatar answered Nov 22 '25 00:11

Josh Ghiloni



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!