2018-06-03 13:55:38 +02:00
|
|
|
image: devillex/docker-firebase:latest
|
2018-05-18 11:43:44 +02:00
|
|
|
|
|
|
|
cache:
|
|
|
|
paths:
|
|
|
|
- node_modules/
|
2018-06-03 12:09:20 +02:00
|
|
|
- functions/node_modules/
|
2018-05-18 11:43:44 +02:00
|
|
|
|
2018-05-18 12:40:21 +02:00
|
|
|
deploy_staging:
|
2018-05-18 11:43:44 +02:00
|
|
|
stage: deploy
|
2018-05-18 12:40:21 +02:00
|
|
|
environment: staging
|
2018-05-18 11:43:44 +02:00
|
|
|
only:
|
|
|
|
- master
|
|
|
|
script:
|
2018-05-19 12:57:03 +02:00
|
|
|
- make configure-functions-staging
|
2018-05-19 08:45:42 +02:00
|
|
|
- yarn
|
|
|
|
- (cd functions; yarn)
|
2018-06-03 11:51:08 +02:00
|
|
|
- (cd functions; yarn lint)
|
2018-09-08 20:22:17 +02:00
|
|
|
- (yarn global add create-react-app react-scripts-ts; cd webapp; yarn build)
|
2018-05-18 18:58:01 +02:00
|
|
|
- firebase use --token $FIREBASE_DEPLOY_KEY_STAGING qpa-staging
|
2018-09-02 18:29:36 +02:00
|
|
|
- firebase deploy -m "Pipeline $CI_PIPELINE_ID, build $CI_BUILD_ID" --non-interactive --token $FIREBASE_DEPLOY_KEY_STAGING
|