Skip to content

Commit e792b41

Browse files
committed
Create a Staging App for Experimentation
1 parent 2a4fe33 commit e792b41

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

.travis.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,13 @@ before_deploy:
2121
deploy:
2222
- edge: true
2323
provider: script
24-
script: if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then cf zero-downtime-push create-react-app-devops -f ./manifest.yml; else echo "PR skip deploy"; fi
24+
script: if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then cf zero-downtime-push create-react-app-devops-staging -f ./manifest-staging.yml; else echo "PR skip deploy"; fi
2525
skip_cleanup: true
2626
on:
2727
branch: master
28+
- edge: true
29+
provider: script
30+
script: if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then cf zero-downtime-push create-react-app-devop -f ./manifest.yml; else echo "PR skip deploy"; fi
31+
skip_cleanup: true
32+
on:
33+
tags: true

manifest-staging.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
applications:
3+
- name: create-react-app-devops-staging
4+
buildpack: https://github.com/cloudfoundry/nodejs-buildpack
5+
command: npm run bluemix
6+
disk_quota: 256MB
7+
memory: 128MB
8+
services:
9+
- keys

0 commit comments

Comments
 (0)