Angular + Firebase ci-deploy image with nodejs and some npm packages :
- firebase-tools
- angular cli
image: mikangali/firebase
variables:
PROJ_STAGING : "staging-project"
PROJ_PRODUCTION : "prod-prejct"
deploy to staging:
environment: staging
script:
- ng build --output-path app
- firebase use $PROJ_STAGING --token "$FIREBASE_TOKEN"
- firebase deploy --token "$FIREBASE_TOKEN"
only:
- master
deploy to production:
environment: production
script:
- ng build --output-path app
- firebase use $PROJ_PRODUCTION --token "$FIREBASE_TOKEN"
- firebase deploy --token "$FIREBASE_TOKEN"
only:
- production