Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Speaker Deck
PRO
Sign in
Sign up for free
Deploy using GitHub Releases
Yuya Matsushima
July 18, 2017
Programming
0
370
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
300
Other Decks in Programming
See All in Programming
React Nativeアプリを DDDで開発している話
nihemak
0
140
Cybozu GoogleI/O 2022 LT会 - Input for all screens
jaewgwon
0
320
Modern Android Developer ~ 안내서
pluu
1
640
From Java through Scala to Clojure
lagenorhynque
0
220
シェーダー氷山発掘記
logilabo
0
140
Get Ready for Jakarta EE 10
ivargrimstad
0
520
Why Airflow? & What's new in Airflow 2.3?
kaxil
0
120
Reactive Java Microservices on Kubernetes with Spring and JHipster
deepu105
1
170
Angular-basierte Micro Frontends mit Module Federation @API Summit
manfredsteyer
PRO
0
110
"What's new in Swift"の要約 / swift_5_7_summary
uhooi
1
320
The strategies behind ddd – AdeoDevSummit 2022
lilobase
PRO
4
250
Java アプリとAWS の良い関係 - AWS でJava アプリを実行する一番簡単な方法教えます / AWS for Javarista
kanamasa
2
1.2k
Featured
See All Featured
Optimizing for Happiness
mojombo
365
63k
4 Signs Your Business is Dying
shpigford
169
20k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
212
20k
Rebuilding a faster, lazier Slack
samanthasiow
62
7.2k
Keith and Marios Guide to Fast Websites
keithpitt
404
21k
Infographics Made Easy
chrislema
233
17k
How STYLIGHT went responsive
nonsquared
85
3.9k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
315
19k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
237
19k
Unsuck your backbone
ammeep
659
55k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
226
15k
Principles of Awesome APIs and How to Build Them.
keavy
113
15k
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ͭͰ͙ͪΌ͙ͪΌ
·ͱΊ • σϓϩΠૣΊʹඋ͢Δͱ ؾָ͕ • ͍͜͠ͱߟ͑ͣʹखಈΛ ίϚϯυʹஔ͖͑Α͏