This repository has been archived by the owner on Aug 30, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #790 from ryanjbaxter/bluemix-button
Added Deploy To Bluemix button to the README
- Loading branch information
Showing
2 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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/jenkins/.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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters