[TIL] CI/CD

์ตœํ•˜์˜จยท2024๋…„ 3์›” 21์ผ
0

TIL

๋ชฉ๋ก ๋ณด๊ธฐ
51/71
post-thumbnail

๐Ÿ“ƒWhat I learned new


CI (Continuous Integration) - ์ง€์†์  ํ†ตํ•ฉ

  • ์ฝ”๋“œ ๋ณ€๊ฒฝ ์‚ฌํ•ญ์ด ์ •๊ธฐ์ ์œผ๋กœ ๋นŒ๋“œ ๋ฐ ํ…Œ์ŠคํŠธ ๋˜์–ด ๊ณต์œ  ๋ ˆํฌ์ง€ํ† ๋ฆฌ์— ํ†ตํ•ฉํžˆ๋Š” ๊ฒƒ์„ ์˜๋ฏธ => merge
  • ์ž์ฃผ ํ•˜๋Š”๊ฒƒ์ด ์ข‹์Œ => ์˜ค๋ฅ˜๋ฅผ ๋นจ๋ฆฌ ์žก์„ ์ˆ˜ ์žˆ์Œ

CD (Continuous Delivery OR Continuous Depolyment) - ์ง€์†์ ์ธ ์ œ๊ณต / ์ง€์†์ ์ธ ๋ฐฐํฌ

์ง€์†์  ์ œ๊ณต

  • CI์—์„œ ๋นŒ๋“œ์™€ ๋‹จ์œ„ ๋ฐ ํ†ตํ•ฉ ํ…Œ์ŠคํŠธ๋ฅผ ์ž๋™ํ™”ํ•œ ๋‹ค์Œ ๊ฒ€์ฆ๋œ ์ฝ”๋“œ๋ฅผ ๋ฆฌํฌ์ง€ํ† ๋ฆฌ๋กœ ๋ฆด๋ฆฌ์Šคํ•˜๋Š” ๊ฒƒ์„ ์ž๋™ํ™” ํ•œ๋‹ค.
  • ํšจ๊ณผ์ ์ธ ์ง€์†์  ์ œ๊ณต ํ”„๋กœ์„ธ์Šค๋ฅผ ํ•˜๋ ค๋ฉด CI๊ฐ€ ๊ฐœ๋ฐœ ํŒŒ์ดํ”„๋ผ์ธ์— ์ด๋ฏธ ๊ตฌ์ถ•๋˜์–ด ์žˆ์–ด์•ผ ํ•œ๋‹ค
    => ๊ฐœ๋ฐœ์ž์˜ ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜ ๋ณ€๊ฒฝ ์‚ฌํ•ญ์ด ์ž๋™์œผ๋กœ ๋ฒ„๊ทธ ํ…Œ์ŠคํŠธ๋ฅผ ๊ฑฐ์น˜๊ณ  ๋ฆฌํฌ์ง€ํ† ๋ฆฌ๋กœ ์—…๋กœ๋“œ๋œ๋‹ค๋Š” ๊ฒƒ์„ ์˜๋ฏธ
  • ๋ฆฌํฌ์ง€ํ† ๋ฆฌ์—์„œ ์šด์˜ ํŒ€์ด ๋ณ€๊ฒฝ ์‚ฌํ•ญ์„ ๋ผ์ด๋ธŒ ํ”„๋กœ๋•์…˜ ํ™˜๊ฒฝ์œผ๋กœ ๋ฐฐํฌํ•  ์ˆ˜ ์žˆ๋‹ค.

์ง€์†์  ์ œ๊ณต์˜ ๋ชฉํ‘œ

  • ์–ธ์ œ๋‚˜ ํ”„๋กœ๋•์…˜ ํ™˜๊ฒฝ์œผ๋กœ ๋ฐฐํฌํ•  ์ค€๋น„๊ฐ€ ๋˜์–ด ์žˆ๋Š” ์ฝ”๋“œ๋ฒ ์ด์Šค๋ฅผ ๊ฐ–์ถ”๊ณ 
    ์ƒˆ๋กœ์šด ์ฝ”๋“œ๋ฅผ ๋ฐฐํฌํ•˜๋Š” ๋ฐ ํ•„์š”ํ•œ ๋…ธ๋ ฅ์„ ์ตœ์†Œํ™”ํ•˜๋Š” ๊ฒƒ

์ง€์†์  ๋ฐฐํฌ

  • CI/CD ํŒŒ์ดํ”„ ๋ผ์ธ์˜ ์ตœ์ข… ๋‹จ๊ณ„, ์ง€์†์  ์ œ๊ณต์˜ ํ™•์žฅ.
  • ๊ฐœ๋ฐœ์ž์˜ ๋ณ€๊ฒฝ ์‚ฌํ•ญ์„ ๋ฆฌํฌ์ง€ํ† ๋ฆฌ์—์„œ ํ”„๋กœ๋•์…˜์œผ๋กœ ๋ฆด๋ฆฌ์Šค ํ•˜๋Š”๊ฒƒ์„ ์ž๋™ํ™”ํ•˜์—ฌ ๊ณ ๊ฐ์ด ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๋„๋ก ํ•˜๋Š”๊ฒƒ.
  • ์ˆ˜๋™ํ”„๋กœ์„ธ์Šค๋กœ ์ธํ•œ ์šด์˜ํŒ€์˜ ์—…๋ฌด๊ณผ๋‹ค ๋ฌธ์ œ๋ฅผ ํ•ด๊ฒฐ.
  • ํŒŒ์ดํ”„ ๋ผ์ธ์˜ ๋‹ค์Œ ๋‹จ๊ณ„๋ฅผ ์ž๋™ํ™”ํ•จ์œผ๋กœ์จ ์ง€์†์  ์ œ๊ณต์˜ ์žฅ์ ์„ ํ™œ์šฉ ํ•œ๋‹ค.
  • ๊ฐœ๋ฐœ์ž๊ฐ€ ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์— ๋ณ€๊ฒฝ ์‚ฌํ•ญ์„ ์ž‘์„ฑํ•œ ํ›„ ๋ช‡ ๋ถ„ ์ด๋‚ด์— ํด๋ผ์šฐ๋“œ ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์„ ์ž๋™์œผ๋กœ ์‹คํ–‰ํ•  ์ˆ˜ ์žˆ๋Š” ๊ฒƒ์„ ์˜๋ฏธ

CI/CD ํŒŒ์ดํ”„๋ผ์ธ

  • ์ฝ”๋“œ๋ฅผ ๋นŒ๋“œ, ํ…Œ์ŠคํŠธ, ๋ฐฐํฌํ•˜๋Š” ๊ณผ์ •์„ ๊ฑฐ์ณ ์†Œํ”„ํŠธ์›จ์–ด ๊ฐœ๋ฐœ์„ ์ถ”์ง„ํ•˜๋Š” ํ”„๋กœ์„ธ์Šค

์ฐธ๊ณ  : https://www.servicenow.com/kr/products/devops/what-is-cicd.html

0๊ฐœ์˜ ๋Œ“๊ธ€