Add deploy from gae branch
This commit is contained in:
parent
ddc02153ed
commit
e59f12861a
|
@ -4,10 +4,11 @@ firebase-debug.log*
|
||||||
npm-debug.log*
|
npm-debug.log*
|
||||||
|
|
||||||
/.env
|
/.env
|
||||||
/client-secret-staging.json
|
|
||||||
/node_modules/
|
/node_modules/
|
||||||
/public/_client/
|
/public/_client/
|
||||||
/secrets.tar
|
/secrets.tar
|
||||||
/secret_key
|
/secret_key
|
||||||
/server.js
|
/server.js
|
||||||
|
/service-account-staging.json
|
||||||
|
/service-account.json
|
||||||
/tokens/
|
/tokens/
|
||||||
|
|
10
.travis.yml
10
.travis.yml
|
@ -12,15 +12,21 @@ before_install:
|
||||||
- tar xvf secrets.tar
|
- tar xvf secrets.tar
|
||||||
script:
|
script:
|
||||||
- npm run lint
|
- npm run lint
|
||||||
- NODE_ENV=$([ "$TRAVIS_BRANCH" == "master" ] && echo "production" || echo "staging")
|
- NODE_ENV=$(([ "$TRAVIS_BRANCH" == "master" ] || [ "$TRAVIS_BRANCH" == "gae" ]) && echo "production" || echo "staging")
|
||||||
npm run build
|
npm run build
|
||||||
deploy:
|
deploy:
|
||||||
- provider: gae
|
- provider: gae
|
||||||
skip_cleanup: true
|
skip_cleanup: true
|
||||||
keyfile: client-secret-staging.json
|
keyfile: service-account-staging.json
|
||||||
project: unpkg-staging
|
project: unpkg-staging
|
||||||
on:
|
on:
|
||||||
branch: gae-staging
|
branch: gae-staging
|
||||||
|
- provider: gae
|
||||||
|
skip_cleanup: true
|
||||||
|
keyfile: service-account.json
|
||||||
|
project: unpkg-gcp
|
||||||
|
on:
|
||||||
|
branch: gae
|
||||||
- provider: script
|
- provider: script
|
||||||
skip_cleanup: true
|
skip_cleanup: true
|
||||||
script: $(npm bin -g)/firebase deploy --project unpkg-staging --message "https://travis-ci.org/$TRAVIS_REPO_SLUG/builds/$TRAVIS_BUILD_ID"
|
script: $(npm bin -g)/firebase deploy --project unpkg-staging --message "https://travis-ci.org/$TRAVIS_REPO_SLUG/builds/$TRAVIS_BUILD_ID"
|
||||||
|
|
BIN
secrets.tar.enc
BIN
secrets.tar.enc
Binary file not shown.
Loading…
Reference in New Issue