Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Deploy using GitHub Releases
Search
Yuya Matsushima
July 18, 2017
Programming
0
510
Deploy using GitHub Releases
github のリリースを使った Golang + Ruby on Rails アプリのデプロイについて
Yuya Matsushima
July 18, 2017
Tweet
Share
More Decks by Yuya Matsushima
See All by Yuya Matsushima
CMS アーキテクチャ
yterajima
0
320
Other Decks in Programming
See All in Programming
1BRC--Nerd Sniping the Java Community
gunnarmorling
0
340
Komplexe Oberflächen mit SVG und der Web Animation API
joergneumann
0
670
使ってみよう Azure AI Document Intelligence
kosmosebi
2
300
PHPの次期バージョンはこの時期どうなっているのか - Internalsの開発体制について - PHPカンファレンス小田原
youkidearitai
PRO
1
190
코틀린으로 멀티플랫폼 만들기
pangmoo
0
150
Zero Waste, Radical Magic, and Italian Graft – Quarkus Efficiency Secrets
hollycummins
0
230
データアナリストが行うDatabricksを活用したETLの自動化事例
shinoa
0
270
ゆるい個人開発のススメ
kuroppe1819
10
990
OpenAPIを中心に考えるAPI開発入門 / Introduction to API Development with a Focus on OpenAPI
seike460
PRO
2
170
AWS CDKコントリビュートTIPS / aws-cdk-contribution-tips
gotok365
2
120
Milestoner
bkuhlmann
1
410
StoreKit2によるiOSのアプリ内課金のリニューアル
kangnux
0
110
Featured
See All Featured
A Philosophy of Restraint
colly
197
16k
How GitHub (no longer) Works
holman
304
140k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
40
4.4k
Visualization
eitanlees
136
14k
Building a Modern Day E-commerce SEO Strategy
aleyda
17
6.4k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
2
1.3k
Building Adaptive Systems
keathley
31
1.9k
The Brand Is Dead. Long Live the Brand.
mthomps
49
28k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
60
14k
We Have a Design System, Now What?
morganepeng
43
6.7k
Unsuck your backbone
ammeep
663
57k
What’s in a name? Adding method to the madness
productmarketing
PRO
16
2.6k
Transcript
Deploy using GitHub Releases 2017-07-15 Gunma.web#28 Yuya Matsushima
ࣗݾհ • দౡ ༞ / @yterajima • PHP, Ruby, JS,
Go …etc • Takasaki.go ओ࠵, Tokyo Middleman Meetupओ࠵
༰ • LazySearch ͷհ • σϓϩΠํ๏ • σϓϩΠඋͷ݁Ռ •
• ·ͱΊ
LazySearch
ߏ • RoR (+ Vue.JS) + Go • Migration (Goose)
• Crawler (Go) • API (Go) • Web UI (RoR) • CI: CircleCI (v1)
ϒϥϯνͷӡ༻ • `master` ͕࠷৽҆ఆ൛ • GitHub ʹ tag Λ push
͢Δͱ ࠷৽൛Λ build • Releases ʹ ghr ͰόΠφϦΞοϓϩʔυ • RoR zip ͰΞοϓϩʔυ
Crawler ͷ build GitHub $ git push origin 1.0.0 CircleCI
CJOBSZ ᶃ push ᶄ CI ᶅ benchmark AWS S3 ᶇ upload ᶆ build
GitHub Ͱཧ͞ΕΔόΠφϦ
σϓϩΠํ๏ • ansible + rake • ࣮ߦλΠϛϯάίϚϯυ࣮ߦ • Ұੈલͷঢ়ଶ·Ͱอଘ •
stg ڥʹσϓϩΠ&&ςετޙ prod ڥ
Crawler ͷσϓϩΠ $ rake prod:deploy:crawler CJOBSZ ᶃ backup GitHub ᶄ
config ߋ৽ ᶅ binary DL ᶆ ࠶ىಈ ᶇ ىಈ௨
ͳͥ͜ͷํ๏ͳͷ͔ • ΤϯλʔϓϥΠζ൛ͷ͕೦಄ʹ • αʔόͷߏཧʹansibleΛ ࠾༻͍ͯ͠ΔӨڹ • capistrano Θͳ͍ͷ??? •
શࣗಈԽͰ͖ͳ͍ͷ???
σϓϩΠඋͷ݁Ռ • ໘ष͕͞ݮͬͨ • ͯ͘தʹσϓϩΠՄ
• master ͷςετΛύε͔ͯ͠Β tag ΛଧͭͷͰ 2 खؒ
ΜͰ͍Δͱ͜Ζ • ڥมઃఆϑΝΠϧͷཧ͕ ࡶʹͳ͍ͬͯΔ • αʔόߏཧͱσϓϩΠཧͷ ϦϙδτϦ͕1ͭͰ͙ͪΌ͙ͪΌ
·ͱΊ • σϓϩΠૣΊʹඋ͢Δͱ ؾָ͕ • ͍͜͠ͱߟ͑ͣʹखಈΛ ίϚϯυʹஔ͖͑Α͏