Slide 1

Slide 1 text

firebase-tools & Google Cloud Identity #FirebaseSummit #2018

Slide 2

Slide 2 text

• 1995೥ੜ·Εͷ23ࡀ • ޷͖ͳςΫϊϩδʔ • TypeScript • Firebase • CDN • HLS খ઒෨ଠ @ogawa0071 DMM.comάϧʔϓ ձ௕ࣨ

Slide 3

Slide 3 text

GoogleͷσβΠφʔʹΞΠίϯ࡞ͬͯ΋Β͍·ͨ͠

Slide 4

Slide 4 text

No content

Slide 5

Slide 5 text

No content

Slide 6

Slide 6 text

Firebase Summit 2018

Slide 7

Slide 7 text

No content

Slide 8

Slide 8 text

#AskFirebaseͰฉ͍͖ͯ·ͨ͠

Slide 9

Slide 9 text

https://firebase-jp.slack.com/messages/C819VPH4M/

Slide 10

Slide 10 text

͜Ε·Ͱ

Slide 11

Slide 11 text

$ git push $ firebase deploy \ --only hosting \ ϩʔΧϧ͔ΒσϓϩΠ

Slide 12

Slide 12 text

$ git push Webhook $ firebase deploy \ --only hosting \ --project $FIREBASE_PROJECT \ --token $FIREBASE_TOKEN CI͔ΒσϓϩΠ

Slide 13

Slide 13 text

$ git push Webhook $ firebase deploy \ --only hosting \ --project $FIREBASE_PROJECT \ --token $FIREBASE_TOKEN CI͔ΒσϓϩΠ

Slide 14

Slide 14 text

τʔΫϯͷ࡞੒ $ firebase login:ci

Slide 15

Slide 15 text

τʔΫϯͷ࡞੒ $ firebase login:ci ✔ Success! Use this token to login on a CI server: XXXXXXXXXXXXXXXXXXXX Example: firebase deploy --token "$FIREBASE_TOKEN"

Slide 16

Slide 16 text

τʔΫϯͷ࡟আ $ firebase logout --token $FIREBASE_TOKEN

Slide 17

Slide 17 text

τʔΫϯͷ࡟আ $ firebase logout --token $FIREBASE_TOKEN ✔ Logged out token "XXXXXXXXXXXXXXXXXXXX"

Slide 18

Slide 18 text

τʔΫϯͷ໰୊ •Google AccountͰͷΈ࡞੒Ͱ͖Δ •Service AccountͰ࡞੒Ͱ͖ͳ͍ •࡞੒ͨ͠Google Account͕࡟আ͞Εͨ৔߹CI͕յΕΔ •࡞੒ͨ͠τʔΫϯͷҰཡ͕දࣔͰ͖ͳ͍

Slide 19

Slide 19 text

τʔΫϯͷ໰୊ •Google AccountͰͷΈ࡞੒Ͱ͖Δ •Service AccountͰ࡞੒Ͱ͖ͳ͍ •࡞੒ͨ͠Google Account͕࡟আ͞Εͨ৔߹CI͕յΕΔ •࡞੒ͨ͠τʔΫϯͷҰཡ͕දࣔͰ͖ͳ͍

Slide 20

Slide 20 text

Google Cloud IAMͷߏ଄ https://cloud.google.com/iam/docs/overview

Slide 21

Slide 21 text

Google Cloud IAMͷߏ଄ https://cloud.google.com/iam/docs/overview αʔόʔΞΧ΢ϯτʹ ઃఆ͢΂͖Identity

Slide 22

Slide 22 text

Google Cloud IAMͷߏ଄ https://cloud.google.com/iam/docs/overview τʔΫϯ͕࢖͏Identity

Slide 23

Slide 23 text

͜Ε͔Β

Slide 24

Slide 24 text

Release Today: firebase-tools v6.1.0

Slide 25

Slide 25 text

No content

Slide 26

Slide 26 text

No content

Slide 27

Slide 27 text

After v6.1.0 $ export GOOGLE_APPLICATION_CREDENTIALS="[PATH]" $ firebase deploy --only hosting \ --project $FIREBASE_PROJECT

Slide 28

Slide 28 text

No content

Slide 29

Slide 29 text

No content

Slide 30

Slide 30 text

No content

Slide 31

Slide 31 text

ΦϚέ •࣮͸Ҏલ͔Β $GCLOUD_PROJECT ͱ͍͏؀ڥม਺͸࢖༻ՄೳͰͨ͠ •͜Ε͸࢖༻͢ΔGoogle CloudͷϓϩδΣΫτΛࢦఆ͢Δ΋ͷ •`--project $FIREBASE_PROJECT` ͱ͍͏Α͏ͳࢦఆ͕ඞཁͳ͘ͳ Γ·͢