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

Deploy using GitHub Releases

Deploy using GitHub Releases

github のリリースを使った Golang + Ruby on Rails アプリのデプロイについて

Yuya Matsushima

July 18, 2017
Tweet

More Decks by Yuya Matsushima

Other Decks in Programming

Transcript

  1. ࣗݾ঺հ • দౡ ༞໵ / @yterajima • PHP, Ruby, JS,

    Go …etc • Takasaki.go ओ࠵, 
 Tokyo Middleman Meetupओ࠵
  2. ߏ੒ • RoR (+ Vue.JS) + Go • Migration (Goose)

    • Crawler (Go) • API (Go) • Web UI (RoR) • CI: CircleCI (v1)
  3. ϒϥϯνͷӡ༻ • `master` ͕࠷৽҆ఆ൛ • GitHub ʹ tag Λ push

    ͢Δͱ
 ࠷৽൛Λ build • Releases ʹ ghr ͰόΠφϦΞοϓϩʔυ • RoR ΋ zip ͰΞοϓϩʔυ
  4. Crawler ͷ build GitHub $ git push origin 1.0.0 CircleCI

    CJOBSZ ᶃ push ᶄ CI ᶅ benchmark AWS S3 ᶇ upload ᶆ build
  5. Crawler ͷσϓϩΠ $ rake prod:deploy:crawler CJOBSZ ᶃ backup GitHub ᶄ

    config ߋ৽ ᶅ binary DL ᶆ ࠶ىಈ ᶇ ىಈ௨஌