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
GitHub ActionsでZennの記事を限定公開する
Search
M-Yamashita
May 11, 2022
Programming
3
710
GitHub ActionsでZennの記事を限定公開する
Fukuoka.rb 0x100 回 LT 大会 (#256)での登壇資料です。
https://fukuokarb.connpass.com/event/245647/
M-Yamashita
May 11, 2022
Tweet
Share
More Decks by M-Yamashita
See All by M-Yamashita
継続的な活動で築く地方エンジニアの道
myamashii
2
360
テストの高速化と品質保証の第一歩 GitHub ActionsとRSpecの基本入門
myamashii
1
440
Contributionとカンファレンス登壇への 背中を押して頂いた方々へ
myamashii
1
1.4k
はてなブログ作成から投稿までをGitHub Actionsで自動化する
myamashii
2
960
Webサービス開発者としてスタートしてからOSS Contributionまでの道のり
myamashii
0
650
Fukuoka.rb 2020年度活動報告
myamashii
0
700
OSS Contributionから感じたこと
myamashii
0
310
手動テストやインフラ構築は自動化しよう
myamashii
0
17k
試行錯誤の勉強法
myamashii
1
4.6k
Other Decks in Programming
See All in Programming
유연한 Composable 설계
l2hyunwoo
0
380
DMMプラットフォームにおけるTiDBの導入から運用まで
pospome
7
3k
How to use Macrobenchmark
veronikapj
0
160
英語
s_shimotori
1
220
DynamoDB コスト最適化っぽいことの基本 with Terraform
kuro_kurorrr
2
250
ドメイン駆動設計の実践
masuda220
PRO
19
5.2k
CSC307 Lecture 12
javiergs
PRO
0
220
Activities at Cairo Library
cairolibrary720
0
1.2k
3 Effective Rules for Success with Signals in Angular
manfredsteyer
PRO
0
120
MIERUNE BBQにおけるユーザー中心設計()
mierune
PRO
1
110
Folding Cheat Sheet #7
philipschwarz
PRO
0
150
Namespace on read
tagomoris
2
370
Featured
See All Featured
Building Applications with DynamoDB
mza
89
5.8k
Faster Mobile Websites
deanohume
303
30k
YesSQL, Process and Tooling at Scale
rocio
166
14k
Rails Girls Zürich Keynote
gr2m
93
13k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
129
32k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
24
1.8k
jQuery: Nuts, Bolts and Bling
dougneiner
61
7.4k
Optimising Largest Contentful Paint
csswizardry
18
2.6k
Embracing the Ebb and Flow
colly
81
4.3k
Music & Morning Musume
bryan
43
5.9k
What's in a price? How to price your products and services
michaelherold
239
11k
Principles of Awesome APIs and How to Build Them.
keavy
124
16k
Transcript
2022-05-11 Fukuoka.rb 0x100 ճ LT େձ GitHub ActionsͰZennͷهࣄΛݶఆެ։͢Δ M-Yamashita
ࣗݾհ • ࢁԼ խਓ • όοΫΤϯυΤϯδχΞ@Ԭ • ࣄͷRailsྺ: 2ఔ •
GitHub: @M-Yamashita01 • Twitter: @M_Yamashii
͢͜ͱ GitHub Actions + Cloud RunͰ ZennͷهࣄΛݶఆެ։͢Δ
ॻ͍ͨهࣄΛಛఆͷਓ͚ͨͪͩʹݟ͍ͤͨʂ ͦΜͳܦݧ͋Γ·ͤΜ͔ʁ ͬͦ͘͞Ͱ͕͢
ࢲ࠷ۙͦͷܦݧʹग़ձ͍·ͨ͠
• ओʹZennΛ͍RubyRailsͳͲʹؔ͢ΔهࣄΛΞοϓ͖ͯͨ͠ • Zennʹߘ͖ͯͨ͠هࣄɺެࣜαΠτެ։͞Ε͍ͯΔใ͔Β ݸਓͰௐࠪ͠·ͱΊͨͷ͕΄ͱΜͲ ࠓ·Ͱ
• ٕज़هࣄͷࣥචʹ͋ͨΓɺଞͷํʹެࣜϦϑΝϨϯεʹؔ͢Δ࣭Λͯ͠ ճΛ͍ͨ • ZennͰهࣄΛॻ্͖͕͛ͨɺެ։લʹΞυόΠεΛͯ͘͠Εͨਓ͚ͩʹ ؒҧ͍ͳ͍͔ݟͯΒ͍͍ͨ • Zennʹݶఆެ։ͷػೳ͕ͳͦ͞͏ʢ2022/05/03 ຊࢿྉ࡞࣌ʣ ͖͔͚ͬ
Ͳ͏ʹ͔ͯ͠ݶఆެ։Ͱ͖ͳ͍͔ʁ
ࣗͷଞʹݶఆެ։Λߟ͑ͨਓ͕͍Δͣ
None
https://zenn.dev/e_koma/articles/20210104-zenn-preview
͜Εͩʂ
ͲΜͳํ๏͔ʁ
લఏɿZennͷCLI͔ΒϓϨϏϡʔΛදࣔ ~/xxxxx/M-Yamashita01/zenn-article ❯ npx zenn preview 👀 Preview: http://localhost:8000
հ͞Ε͍ͯͨݶఆެ։ͷํ๏ Container Registry Cloud Run Push Image Deploy Use Image
Access Docker fi le ENTRYPOINT ["npx", "zenn", "preview"] https://xxxxx.a.run.app
ΊͬͪΌศརͦ͏ʂ
͜ͷํ๏Λͬͨͱ͖ʹ ՝͕͍͔ͭ͘ग़͖ͯͨ
• ෳͷίϚϯυΛखಈ࣮ߦ͢Δͷख͕͔͔ؒΔ • ZennͱGitHubΛ࿈ܞࡁΈͳͷͰɺهࣄ࡞ͷPull RequestΛτϦΨʔʹ ϓϨϏϡʔΛݟ͍ͨ • ϓϨϏϡʔʹͬͨCloud RunͷαʔϏείϯςφΠϝʔδͷফ͠ΕΛ ආ͚͍ͨ
՝
ղܾͰ͖ΔΑ ͦ͏ɺGitHub ActionsͳΒͶ
ߏ Container Registry Cloud Run Push article Deploy Access GitHub
Actions Pull Request Push image Use Image https://xxxxx.a.run.app Post preview url
• Pull RequestͷopenɺpushʹΑΔߋ৽ • طଘͷίϯςφΠϝʔδɺCloud RunͷαʔϏεΛআ • Container RegistryΠϝʔδϓογϡɺCloud RunʹσϓϩΠ
• σϓϩΠྃޙʹϓϨϏϡʔͷURLΛPull Requestʹߘ • Pull Request close • طଘͷίϯςφΠϝʔδɺCloud RunͷαʔϏεΛআ ϫʔΫϑϩʔ
ಈ࡞݁Ռ (Pull Request open)
͋Γ͕ͱ͏͍͟͝·ͨ͠ʂ