How can I add as part of my pipeline that it needs to grab the git repository , run npm install and npm build and then push to cloud foundry?.
So far i am able to make it so that it grabs the repository and pushes to cloud foundry. But not completely sure on how to make it so that it builds the npm tasks. I am using a BOSH director to handle all the concourse stuff.
Any direction or ideas will be very appreciated. I am following this tutorial here and based my pipeline on this: (where and how would i go about adding building npm tasks?)
---
resources:
- name: resource-web-app
type: git
source:
uri: https://github.com/cloudfoundry-community/simple-go-web-app.git
- name: resource-deploy-web-app
type: cf
source:
api: {{cf-api}}
username: {{cf-username}}
password: {{cf-password}}
organization: {{cf-organization}}
space: {{cf-space}}
skip_cert_check: true
jobs:
- name: job-deploy-app
serial: true
plan:
- {get: resource-web-app, trigger: true}
- put: resource-deploy-web-app
params:
manifest: resource-web-app/manifest.yml
path: resource-web-app
https://github.com/starkandwayne/concourse-tutorial/tree/master/15_deploy_cloudfoundry_app