-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpipeline.yml
42 lines (42 loc) · 942 Bytes
/
pipeline.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
---
stages:
- name: Build
inputs:
- type: git
branch: master
triggers:
- type: commit
jobs:
- name: meanjs-build
type: builder
artifact_dir: ./
build_type: grunt
script: |-
#!/bin/bash
# Install RVM, Ruby, and SASS
# Needed when running grunt build
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
curl -sSL https://get.rvm.io | bash -s stable --ruby --gems=sass
# Start RVM
source /home/pipeline/.rvm/scripts/rvm
# Build MEANJS
npm install
grunt build
- name: Deploy
inputs:
- type: job
stage: Build
job: meanjs-build
jobs:
- name: Deploy
type: deployer
target:
url: ${CF_TARGET_URL}
organization: ${CF_ORGANIZATION}
space: ${CF_SPACE}
application: ${CF_APP}
script: |-
#!/bin/bash
cf push
# view logs
#cf logs "${CF_APP}" --recent