Skip to content

mikangali-docker/angular

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Firebase deploy image

Docker build

Angular + Firebase ci-deploy image with nodejs and some npm packages :

  • firebase-tools
  • angular cli

Sample usage for gitlab ci

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

Releases

No releases published

Packages

No packages published