Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I run a small command in a concourse pipeline?

I basically want to run the npm install and grunt build command within the newly added repo.

        inputs:
          - name: repo

          - path:
        run:
          path: repo/
          args:
          - npm install
          - grunt build
like image 862
Atlantic0 Avatar asked Oct 29 '25 17:10

Atlantic0


1 Answers

path: refers to the path in the container to the binary / script to execute.

Check out this example on the Tasks documentation here : https://concourse-ci.org/tasks.html#task-environment

run:
  path: sh
  args:
  - -exc
  - |
    whoami
    env

sh is the program to execute, and args are passed to the sh program

like image 145
Topher Bullock Avatar answered Oct 31 '25 05:10

Topher Bullock



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!