qpa-client/.gitlab-ci.yml
2018-09-08 20:22:17 +02:00

21 lines
578 B
YAML

image: devillex/docker-firebase:latest
cache:
paths:
- node_modules/
- functions/node_modules/
deploy_staging:
stage: deploy
environment: staging
only:
- master
script:
- make configure-functions-staging
- yarn
- (cd functions; yarn)
- (cd functions; yarn lint)
- (yarn global add create-react-app react-scripts-ts; cd webapp; yarn build)
- firebase use --token $FIREBASE_DEPLOY_KEY_STAGING qpa-staging
- firebase deploy -m "Pipeline $CI_PIPELINE_ID, build $CI_BUILD_ID" --non-interactive --token $FIREBASE_DEPLOY_KEY_STAGING