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

CircleCI first-step

CircleCI first-step

Hisashi.Iguchi

April 27, 2018
Tweet

More Decks by Hisashi.Iguchi

Other Decks in Technology

Transcript

  1. ਓ෺ w ࢯ໊ w Ҫޱ߃ࢤ )JTBTIJ*HVDIJʣ w ॴଐ w %F/"48&5(S

    4PGU8BSF&OHJOFFSJO5FTU  w ։ൃޮ཰޲্ͷͨΊͷࣗಈςετͷ։ൃಋೖ w ࣾ಺ఏڙதͷ$JSDMF$*&OUFSQSJTFͷӡ༻อक 
  2. 8IBU$JSDMF$* w ެࣜαΠτɿIUUQTDJSDMFDJDPN w -JOVY.BD04ͷ4BB4ܕ$*4FSWJDF w +FOLJOTͱҧ͍Πϯϑϥͷӡ༻อकෆཁɹ˞&OUFSQSJTF൛͸ཁӡ༻อक w (JU)VC #JUCVDLFUͱ࿈ܞ

    w ίϯςφϕʔεͰδϣϒΛ࣮ߦ w δϣϒఆٛϑΝΠϧΛϦϙδτϦ಺ʹ؅ཧ w TUBDLTIBSFͰͷೝ஌౓͸্Ґ w IUUQTTUBDLTIBSFJPDPOUJOVPVTJOUFHSBUJPO 
  3. 1SJDJOH w 1SJDJOHBOE1MBO*OGPSNBUJPO IUUQTDJSDMFDJDPNQSJDJOH  w େ͖͘෼͚ͯλΠϓ w -JOVY.BD04&OUFSQSJTF 

    ग़యɿ$JSDMF*OUFSOFU4FSWJDFT *OD1SJDJOHBOE1MBO*OGPSNBUJPO$JSDMF$*63-IUUQTDJSDMFDJDPNQSJDJOH
  4. 1SJDJOH-JOVY w ݱࡏ͸ίϯςφ୯ҐͰͷྉۚઃఆ w ࠓޙैྔ՝੍ۚʹมߋ༧ఆͱͷ͜ͱʢมߋ࣌ظ͸ະఆʣ  w 044QSPKFDUͰ͋Ε͹ίϯςφ·Ͱແྉ w ίϯςφແྉ

    w QSJWBUFϦϙδτϦͰ΋ແྉ w  ݄࣌ؒ w ͋ͨΓ ग़యɿ$JSDMF*OUFSOFU4FSWJDFT *OD1SJDJOHBOE1MBO*OGPSNBUJPO$JSDMF$*63-IUUQTDJSDMFDJDPNQSJDJOHCVJMEMJOVY
  5. 1SJDJOH&OUFSQSJTF w Ϣʔβ୯ҐͰͷྉۚઃఆͰ͋Γ೥ؒܖ໿  w .BD04Λར༻͢Δ৔߹͸೥ؒܖ໿Ͱ໰͍߹Θͤ w ίϯςφ୯ҐͰͷܖ໿ w -JOVYWFS

    .BD04WFS ग़యɿ$JSDMF*OUFSOFU4FSWJDFT *OD1SJDJOHBOE1MBO*OGPSNBUJPO$JSDMF$*63-IUUQTDJSDMFDJDPNQSJDJOHCVJMEFOUFSQSJTF
  6. Ϗϧυ w δϣϒͷఆٛ w ϧʔτͷDJSDMFDJDPOpHZNMʹఆٛ w DG WFS͸ϧʔτ௚ԼͷDJSDMFZNMʹఆٛ w ࣮ߦλΠϛϯά

    w ϦϙδτϦ'PMMPX࣌ w ର৅ϦϙδτϦʹDPNNJUQVTI1VMM3FRVFTU w "1*ܦ༝ 
  7. δϣϒఆٛͷछྨ w ୯Ұδϣϒ w ̍ͭͷCVJMEδϣϒͷΈͰߏ੒ w 8PSLqPX w δϣϒΛ෼ׂͯ͠ఆٛ w

    δϣϒ࣮ߦͰ͸δϣϒίϯςφ઎༗ w ฒྻͰ࣮ߦͤ͞Δ৔߹͸ෳ਺ίϯςφ͕ඞཁ w ࣮ߦॱং΍ґଘؔ܎ͳͲ΋ఆٛ 
  8. ௨஌ w Ϣʔβ୯Ґ w &NBJM௨஌ɺ8FC/PUJpDBUJPO w ϓϩδΣΫτ୯Ґ w $IBU/PUJpDBUJPO w

    4MBDL )JQDIBU 'MPXEPDL $BNQpSF *3$ w 4UBUVT#VEHFT w (JU)VCͷର৅ϓϩδΣΫτ΁දࣔՄೳ  ग़యɿ(JU)VCDPNͷαʔϏεը໘ΑΓ
  9. εέδϡʔϧ࣮ߦ w εέδϡʔϧ࣮ߦ΋Մೳ w 8PSLqPXͷδϣϒ w ஫ҙ఺ w 65$Ͱͷهࡌ͕ඞਢ w

    ෼ִ࣮ؒߦͳͲͷදه w      w ໘౗Ͱ΋      ͱهࡌ͕ඞཁ  ࣮ߦ͢Β͞Εͳ͍ ग़యɿ$JSDMF$*ͷαʔϏεը໘ΑΓ
  10. $ curl -o /usr/local/bin/circleci \ https://circle-downloads.s3.amazonaws.com/releases/build_agent_wrapper/circleci \ && chmod +x

    /usr/local/bin/circleci $ circleci update $JSDMF$*-PDBM$-*  w $-*࣮ߦʹ͸EPDLFS؀ڥ͕ඞਢ w 8PSLqPX DBDIF NBDIJOFFYFDVUPSʹ͸ඇରԠ $ circleci config validate -c .circleci/config.yml config file is valid w Πϯετʔϧ w ఆٛϑΝΠϧͷ֬ೝ
  11. ࢀߟ w $POpHVSBUJPO3FGFSFODFɿ w IUUQTDJSDMFDJDPNEPDTDPOpHVSBUJPOSFGFSFODF w 4BNQMF w IUUQTDJSDMFDJDPNEPDTFYBNQMFT w

    "1*3FGFSFODF w IUUQTDJSDMFDJDPNEPDTBQJWSFGFSFODF w -PDBM$-* w IUUQTDJSDMFDJDPNEPDTMPDBMDMJ w %JTDVTT w IUUQTEJTDVTTDJSDMFDJDPN 
  12. ͓·͚$JSDMF$*5PLZP6TFS.FFU6QΑΓ w $JSDMF$*೔ຊࢧ͕ࣾͰ͖ΔΑ͏Ͱ͢ w ՝ۚܗଶΛίϯςφ୯Ґैྔ՝੍ۚ w 1SPUFDUFE3FTPVSDFT w FY Ϣʔβ͝ͱʹσϓϩΠՄೳෆՄೳͱ੍͍ͬͨޚ

    w */4*()54ػೳͷڧԽ w ༗ޮ׆༻͕ՄೳͳΑ͏ʹػೳվળ w ݱࡏ"1*Λ(SBQI2-Λ༻͍ͯॱ࣍։ൃத w #:0%SFNPUFEPDLFS౳ͷ7.ىಈΛΦϯϓϨϚγϯͷར༻Մೳ