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
560
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
330
Other Decks in Programming
See All in Programming
EventSourcingの理想と現実
wenas
6
2.3k
CSC509 Lecture 09
javiergs
PRO
0
140
Snowflake x dbtで作るセキュアでアジャイルなデータ基盤
tsoshiro
2
520
macOS でできる リアルタイム動画像処理
biacco42
9
2.4k
どうして僕の作ったクラスが手続き型と言われなきゃいけないんですか
akikogoto
1
120
Amazon Bedrock Agentsを用いてアプリ開発してみた!
har1101
0
330
聞き手から登壇者へ: RubyKaigi2024 LTでの初挑戦が 教えてくれた、可能性の星
mikik0
1
130
Jakarta EE meets AI
ivargrimstad
0
120
LLM生成文章の精度評価自動化とプロンプトチューニングの効率化について
layerx
PRO
2
190
ヤプリ新卒SREの オンボーディング
masaki12
0
130
PHP でアセンブリ言語のように書く技術
memory1994
PRO
1
170
Realtime API 入門
riofujimon
0
150
Featured
See All Featured
Making Projects Easy
brettharned
115
5.9k
[RailsConf 2023] Rails as a piece of cake
palkan
52
4.9k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
191
16k
How to train your dragon (web standard)
notwaldorf
88
5.7k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
26
2.1k
Why Our Code Smells
bkeepers
PRO
334
57k
No one is an island. Learnings from fostering a developers community.
thoeni
19
3k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
4
370
Being A Developer After 40
akosma
86
590k
Writing Fast Ruby
sferik
627
61k
Fashionably flexible responsive web design (full day workshop)
malarkey
405
65k
Ruby is Unlike a Banana
tanoku
97
11k
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ͭͰ͙ͪΌ͙ͪΌ
·ͱΊ • σϓϩΠૣΊʹඋ͢Δͱ ؾָ͕ • ͍͜͠ͱߟ͑ͣʹखಈΛ ίϚϯυʹஔ͖͑Α͏