Upgrade to Pro — share decks privately, control downloads, hide ads and more …

OK Google, Deploy the iOS app

Sponsored · Ship Features Fearlessly Turn features on and off without deploys. Used by thousands of Ruby developers.
Avatar for asmz asmz
March 26, 2019

OK Google, Deploy the iOS app

OK Google, iOSアプリをデプロイして

Talked at GCPUG Sendai #1

Avatar for asmz

asmz

March 26, 2019
Tweet

More Decks by asmz

Other Decks in Technology

Transcript

  1. 2 誰なのか? • Akira Shimizu / asmz (@_asmz) • https://asmz.beer/

    • 株式会社ビデオマーケット 仙台オフィス • iOSエンジニア • GCP周辺技術が割と好き ◦ Firebase、Actions on Google etc...
  2. iOSアプリCI/CD 本日の材料 Actions on Google 物理デバイス 8 Google Home Raspberry

    Pi Cloud IoT Core Cloud Datastore Cloud Functions Bitrise Google Assistant Dialogflow
  3. 11 下ごしらえ • デプロイに必要なもの ◦ 対象ブランチ ◦ BitriseのWorkflow • Workflowとは

    ◦ ビルドに必要な一連の作業フ ローを定義したもの ◦ 開発用、本番用などビルドの 種類分用意する
  4. 14 User Devices Mobile App CI/CD Google Home Actions on

    Google Raspberry Pi Cloud IoT Core Cloud Datastore Cloud Functions Cloud Functions Bitrise Google Assistant Dialogflow 全体構成
  5. 16 Google Home→ デプロイ開始 16 User Devices Mobile App CI/CD

    Google Home Actions on Google Cloud Datastore Cloud Functions Bitrise Google Assistant Dialogflow POINT!
  6. 21 解析したパラメータをBitriseへPOST 21 User Devices Mobile App CI/CD Google Home

    Actions on Google Cloud Datastore Cloud Functions Bitrise Google Assistant Dialogflow ① パラメータ: branch, workflow ② Webhook URLへ POST ③ Bitriseレスポンスの「ビ ルド番号」保存
  7. 23 デプロイ終了 → Google Home User Devices Mobile App CI/CD

    Google Home Raspberry Pi Cloud IoT Core Cloud Datastore Cloud Functions Bitrise POINT!
  8. 29 デプロイ終了通知をIoT Coreへ伝達 User Devices Mobile App CI/CD Google Home

    Raspberry Pi Cloud IoT Core Cloud Datastore Cloud Functions Bitrise ① パラメータ: ビルド番号 ② ビルド番号存在 チェック ③ メッセージ(ビルド番 号)送信
  9. 30 Raspberry Piで通知受信、発話 User Devices Mobile App CI/CD Google Home

    Raspberry Pi Cloud IoT Core Cloud Datastore Cloud Functions Bitrise
  10. 35 やってみての感想 • 定型的な作業向き ◦ ベータ版アプリの再配布 ◦ 環境違いのベータ版の配布 など • リスク低な作業向き

    ◦ リリースビルドなど間違えたくないデプロイは音声より文字 での確認の方がしやすい
  11. 36 やってみての学び • アイデア次第でいろんなことに応用できそう • Cloud IoT Coreを使った、クラウドから物理デバイス との双方向通信は、結構応用が効きそう ◦

    重度障害発生時に音で知らせる、パトランプ回す ◦ Webからの家電操作(ラズパイ+赤外線リモコン) 便利な使い方あれば、 ぜひGCPUG Sendaiで発表を!