gdg-x / hoverboard

Conference website template
https://hoverboard-master.web.app
Other
1.1k stars 1.08k forks source link

Updating speakers data with travis-ci #648

Open oshamahue opened 5 years ago

oshamahue commented 5 years ago

Hi,

I couldn't been able to run firestore commands with the travis encrypted firebase token. So is it possible to update speakers and other similar data with travis ci?

cortinico commented 5 years ago

Hi @oshamahue

So the Travis config file (assuming you used .travis.yml and followed /docs/tutorials/04-deploy.md) can be used to setup the CI to deploy Firebase Hosting and Firebase Cloud Functions.

All the speakers and similar data is stored on Firebase Cloud Firestore, that should either be updated manually or deployed with a different repo/pipeline.

abraham commented 5 years ago

It would take some work probably but I don't see any reason why you couldn't run Firebase commands on CI and have it update Firestore data.

oshamahue commented 5 years ago

Thanks for the replies. I think in our use case we will do this manually. After some investigation it seems possible but deployment needs to be without using travis firebase deployment provider. Firebase CI token should be stored as an environment var and passed to firebase commands using the --token parameters.