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

how-to-deploy-from-travis-ci

KamataRyo
August 06, 2017

 how-to-deploy-from-travis-ci

WordBench Kyoto 2017年8月のセッションで使用したスライドです。

KamataRyo

August 06, 2017
Tweet

More Decks by KamataRyo

Other Decks in Technology

Transcript

  1. $*؀ڥ͔ΒσϓϩΠ͢ΔϓϥΫςΟε !8PSE#FODI,ZPUP 

  2. "HFOEB w $*πʔϧʹ͍ͭͯ
 Š5SBWJT$* w Φʔϓϯͳ$*؀ڥ͔ΒσϓϩΠ͢Δϊ΢ϋ΢
 Š(JU)VCɺOQNSFHJTUSZ w ηΩϡϦςΟ
 ŠUSBWJT$-*πʔϧɺ(JU)VC%FQMPZ,FZ

  3. $*$POUJOVPVT*OUFHSBUJPO
 ܧଓతΠϯςάϨʔγϣϯ w ߴ౓Խ͢Δཁٻ w ෳࡶԽ͢ΔϓϩμΫτ w λεΫͷ૿େ w 

    ࣗಈԽػߏΛ׆༻ͭͭ͠ςετͳͲͷλεΫΛ൓෮తʹॲཧ͠ɺ
 ίϛοτΛܧଓ͢Δ
  4. w Ϋϥ΢υܕͷ$*ࢧԉαʔϏε w (JU)VCͰϗετ͞ΕͨΦʔϓϯιʔεϓϩδΣΫτʹରͯ͠͸ແྉͰ࢖༻Ͱ͖Δ w ϦϙδτϦ͝ͱʹִ཭͞Εͨίϯςφ্Ͱಈ࡞ w (JU)VC΁ͷίϛοτͷϓογϡʹϑοΫͯ͠ൃՐ 5SBWJT$*

  5. $*؀ڥԼͰͰ͖Δ͜ͱ w Ϗϧυ w ςετ w ੩తղੳɺίʔυ-JOU w ࣗಈԽ͞Εͨςετ w

    FUD w σϓϩΠɾϦϦʔε w (JUϦϙδτϦʹίϛοτΛϓογϡ͢Δ w OQNͳͲͷϥΠϒϥϦΛެ։͢Δ w αʔόʔʹϑΝΠϧΛૹ৴ w FUD w ௨஌ w 4MBDLɺϝʔϧ w FUD
  6. QVTI DMPOF  (JUϦϙδτϦ  OQNSFHJTUSZ εςʔδϯά؀ڥͳͲ Ϗϧυ ςετ σϓϩΠɾϦϦʔε

    ίʔσΟϯά ௨஌
  7. USBWJTZNMͷྫ MBOHVBHFQIQ QIQ  [email protected] OQNSVOCVJME DPNQPTFSJOTUBMM TDSJQU OQNUFTU QIQVOJU

    [email protected] tCJOEFQMPZTIu Ϗϧυ ςετ σϓϩΠ
  8. (JU)VCͱͷ࿈ܞ w ΠϯςάϨʔγϣϯ͋Γ
 ʔʮίʔσΟϯάن໿ʹଇ͍ͬͯͳ͍͔ΒϚʔδ͠ͳ͍ʯ
 ʔʮςετ͕௨͍ͬͯͳ͍͔ΒϚʔδ͠ͳ͍ʯ w Ϗϧυϩά͸ެ։

  9. ؔ৺ࣄ w Ϗϧυϩά͕ެ։͞ΕΔ͜ͱΛલఏʹɺ
 Ϋϥ΢υ$*؀ڥ͔ΒσϓϩΠઌʹɺηΩϡΞʹΞΫηε͍ͨ͠ ύεϫʔυ΍ΞΫηετʔΫϯΛͲͷΑ͏ʹηΩϡΞʹѻ͏͔ʁ

  10. 5SBWJT$*ͷ$-*πʔϧ ċHFNJOTUBMMUSBWJT ˞:".-ͷύʔαʔ͕
 BEEΦϓγϣϯΛ࢖͏ͱUSBWJTZNMશମ͕ڧ੍తʹ੔ܗ͞ΕΔ w USBWJTFODSZQUίϚϯυͰಛఆͷจࣈྻΛ҉߸Խ w USBWJTFODSZQUpMFίϚϯυͰϑΝΠϧΛ҉߸Խ

  11. USBWJTFODSZQUίϚϯυͷ࢖༻ྫ ċUSBWJTFODSZQU"$$&[email protected],&/YYYBEE FOW HMPCBM TFDVSFLSX++LXHF$W.2$0%#JPX-N,OJ3UXQ w ͜ͷྫͰ͸ɺ"$$&[email protected],&/͕5SBWJT$*ͷϏϧυίϯςφ಺ͷ؀ڥม਺ͱͯ͠ ల։͞ΕΔ w ؀ڥม਺Ҏ֎ʹ΋ɺ4MBDLͷ8FCIPPL63-΍OQNͷΞΫηετʔΫϯΛ҉߸Խ͢

    ΔͳͲɺ5SBWJT$*ͷػೳʹԠͨ͡Φϓγϣϯͷࢦఆํ๏͕͋Γ·͢
  12. USBWJTFODSZQUpMFίϚϯυͷ࢖༻ྫ ċUSBWJTFODSZQUGJMFQBUIUPTFDSFUGJMFBEE MTQBUIUPTFDSFUGJMF  QBUIUPTFDSFUGJMF QBUIUPTFDSFUGJMFFOD [email protected]  PQFOTTMBFTDCD,[email protected]@LFZJW[email protected]@JW JOTFDSFUFODPVUTFDSFUE

  13. USBWJTFODSZQUpMFίϚϯυͷ࢖༻ྫ ċUSBWJTFODSZQUGJMFQBUIUPTFDSFUGJMFBEE w ҉߸ԽࡁΈͷϑΝΠϧTFDSFUpMFFOD͕ಘΒΕΔ w ͜ͷϑΝΠϧΛ෮߸͢ΔͨΊͷίϚϯυ͕USBWJTZNMʹهࡌ͞ΕΔ w <ॏཁ>ݩͷTFDSFUpMF͸࣮֬ʹ࡟আͨ͠ΓɺHJUJHOPSFʹهࡌ͢ΔͳͲͯ͠ɺ
 ઈରʹϦϙδτϦʹίϛοτ͠ͳ͍Α͏ʹ͢Δ ͜ΕΒΛ࢖ͬͯσϓϩΠΛࢼͯ͠Έ·͢

  14. (JU)VCʹσϓϩΠ Ԡ༻ྫ w 5SBWJT$*͔Β(JU)VC1BHFTʹίϛοτΛϓογϡͯ͠ɺ
 ࣗಈͰXFCαΠτΛެ։͢Δ ࠓճ͸͜ΕΛࢼ͠·͢  w OFYUϒϥϯνΈ͍ͨͳ΋ͷʹίϛοτΛϓογϡͯ͠ɺ
 ະϦϦʔεͷόʔδϣϯͷϥΠϒϥϦΛϗετ͢Δ

    w ίϛοτͷࣗಈԽʢίʔυ΍ґଘؔ܎ͷࣗಈमਖ਼ʣ ํ਑ w ϦϙδτϦ͝ͱʹσϓϩΠ伴Λ࡞੒͠ɺ
 USBWJTFODSZQUpMFίϚϯυͰ҉߸Խͯ͠ϦϙδτϦʹಉࠝ͢Δ w ΞΫηετʔΫϯΛ࢖ͬͯ΋(JU)VCʹXSJUFΞΫηε͸Ͱ͖Δ͕ɺ
 ϦϙδτϦ͝ͱʹݖݶΛઃఆͰ͖ͳ͍ͨΊɺࠓճ͸ύε
  15. (JU)VCʹσϓϩΠcϦϙδτϦߏ੒ ċMT
 [email protected]HJUJHOPSFE
 [email protected]FOD [email protected]QVCෆཁʹͳΔͷͰɺ࢖ͬͨΒ࡟আͯ͠΋Α͍ USBWJTZNM EJTUHJUJHOPSFE TSD w 伴ϖΞΛTTILFZHFOίϚϯυͰ࡞੒

    w ൿີ伴ΛUSBWJTFODSZQUpMFίϚϯυͰ҉߸Խ w ެ։伴ΛHJUIVCDPN͔Β౰֘ϦϙδτϦͷઃఆʹ௥Ճ͠ɺXSJUFݖݶΛ෇༩
 <4FUUJOHT><%FQMPZLFZT>͔Βొ࿥Ͱ͖·͢ w ࣗಈԽπʔϧIUUQTHJUIVCDPNB[VBEEEFQMPZLFZUPHJUIVC
  16. (JU)VCʹσϓϩΠc5SBWJT$*ͷઃఆ [email protected] PQFOTTMUSBWJTFODSZQUGJMFθϣϸώ͹ᄌΛΞͱᏗ߸θϣϸώ NW[email protected]_TTI[email protected] DINPE_TTI[email protected]
 DEEJTU
 HJUJOJU HJUDPOGJHHMPCBMVTFSOBNFVTFS!USBWJT HJUDPOGJHHMPCBMVTFSFNBJMVTFS!OPSFQMZHJUIVCJP HJUSFNPUFBEEPSJHJOVTFSSFQP

    HJUDIFDLPVUCHIQBHFT HJUQVTIGPSJHJOHIQBHFT w $*؀ڥԼͰൿີ伴Λ෮߸͠ɺ(JU)VCʹίϛοτΛϓογϡ͢Δ w (JUͷίϚϯυΛଧ͍͚ͬͯͩ͘
  17. OQNSFHJTUSZʹσϓϩΠ ํ਑ w 5SBWJT$*Ͱςετ͕௨͍͚ͬͯͨ࣌ͩʹOQNQVCMJTI͢Δɻ
 खݩͰOQNQVCMJTI͢ΔͱͲ͏ͯ͠΋Φϖϛε͢Δ ςετ͕௨͍ͬͯͳ͍ͷʹQVCMJTIͯ͠͠·͏ ҙਤ͍ͯͨ͠΋ͷͱҧͬͨϦϙδτϦͷϑΥϧμʹ͍ͨ w 5SBWJT$*ͷ%FQMPZ1SPWJEFSΛ࢖͏

  18. ηΩϡϦςΟϦεΫ ϓϧϦΫΤετͰ߈ܸ͢ΔσϞ IUUQTHJUIVCDPNLBNBUBSZPUSBWJTDJTFDVSJUZ

  19. w ҉߸Խͨ͠؀ڥม਺ɾϑΝΠϧ͸ɺϓϧϦΫΤετஈ֊Ͱ͸෮߸͞Εͳ͍ʢ҆৺ʣ w ͨͩ͠ɺϓϧϦΫΤετΛड͚ೖΕͨΒɺϚʔδίϛοτͳͲͰϏϧυ͕ൃՐ͠ɺ
 ͜ΕΒͷηΩϡΞͳ஋͸ࣗ༝ʹ͞ΕΔ

  20. 5SBWJT$*ͷηΩϡϦςΟ ϦεΫ w ηΩϡΞͳ৘ใʢτʔΫϯɾ伴ϑΝΠϧͳͲʣͷ࿙Ӯ w σϓϩΠઌ (JUɺOQNSFHJTUSZɺαʔόʔ ʹΞΫηε͞ΕΔ ରࡦ w

    ࣗര͠ͳ͍ʔηΩϡΞͳ஋Λϩάʹు͖ग़͞ͳ͍ w ߈ܸΛݟམͱ͞ͳ͍ʔϓϧϦΫΤετͷϨϏϡʔΛపఈ͢Δ ༧๷ w ࠷খݖݶͰσϓϩΠ͢ΔΑ͏ʹ͢Δ
  21. ·ͱΊͱࡶஊ w $*πʔϧɾαʔϏεΛ্खʹ࢖ͬͯศརʹ։ൃ͍ͨ͠ w σϓϩΠ͕བྷΉͱηΩϡϦςΟϦεΫ͕෣͍ࠐΉͷͰɺ
 ରࡦΛଵΒͳ͍Α͏ʹ͍ͨ͠ w OQNͳͲ͸5SBWJT$*͕ωΠςΟϒʹରԠ͍ͯ͠ΔͷͰɺ
 ࢖ͬͯΈ͍ͯͩ͘͞PSผͷػձʹ঺հ͍ͨ͠Ͱ͢ w

    $PNQPTFSʹ͍ͭͯ͸ௐࠪதɻ୭͔ڭ͍͑ͯͩ͘͞