๐Ÿ“š Study/DevOps

CI/CD ๊ธฐ๋ณธ ๊ฐœ๋…

kkh1902 2023. 2. 17. 23:13
728x90
๋ฐ˜์‘ํ˜•

๊ฐœ๋…

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

 

CI : Continuous Integration

์ง€์†์ ์ธ ํ†ตํ•ฉ

  • ๋ฉ”์ธ ๋ ˆํฌ์ง€ํ† ๋ฆฌ์— ์ฃผ๊ธฐ์ ์œผ๋กœ ๋นŒ๋“œ๋˜๊ณ  ํ…Œ์ŠคํŠธ๊ฐ€ ๋˜์–ด์„œ ๋จธ์ง€๋˜๋Š” ๊ฒƒ์ด๋‹ค.

1. ์ฝ”๋“œ ๋ณ€๊ฒฝ์‚ฌํ•ญ์„ ์ฃผ๊ธฐ์ ์œผ๋กœ ๋นˆ๋ฒˆํ•˜๊ฒŒ ๋จธ์ง€ํ•ด์•ผ ํ•œ๋‹ค.

  • ๋‚˜์ค‘์— ๋จธ์ง€ํ•˜๋ ค๊ณ  ํ•˜๋ฉด ์„œ๋กœ ๋‹ค๋ฅธ ์ฝ”๋“œ๋ฅผ ์–ด๋–ป๊ฒŒ ํ†ตํ•ฉํ•ด์„œ ์ ์šฉํ•ด ๋‚˜๊ฐˆ๊ป€์ง€ ๋ฌธ์ œ๊ฐ€ ๋ฐœ์ƒ
  • ์ฝ”๋“œ๋ฅผ ์ž‘์„ฑํ•˜๋Š” ์‹œ๊ฐ„๋ณด๋‹ค ๋จธ์ง€ํ•˜๋Š” ์‹œ๊ฐ„์ด ๋” ์˜ค๋ž˜ ๊ฑธ๋ฆฌ๋Š” ๋ฌธ์ œ๊ฐ€ ๋ฐœ์ƒ
  • ์ž‘์€ ๋‹จ์œ„๋กœ ๋‚˜๋ˆ„์–ด์„œ ํ†ตํ•ฉํ•˜๋Š” ๊ฒƒ์ด ์ค‘์š”

2. ํ†ตํ•ฉ์„ ์œ„ํ•œ ๋‹จ๊ณ„ (๋นŒ๋“œ, ํ…Œ์ŠคํŠธ, ๋จธ์ง€)์˜ ์ž๋™ํ™”

 

CD : Continuous Delivery(์ˆ˜๋™) or Deployment(์ž๋™)

์ง€์†์ ์ธ ์ œ๊ณต ,๋ฐฐํฌ

 

๊ฐœ๋…

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

 

CI : Continuous Integration

์ง€์†์ ์ธ ํ†ตํ•ฉ

  • ๋ฉ”์ธ ๋ ˆํฌ์ง€ํ† ๋ฆฌ์— ์ฃผ๊ธฐ์ ์œผ๋กœ ๋นŒ๋“œ๋˜๊ณ  ํ…Œ์ŠคํŠธ๊ฐ€ ๋˜์–ด์„œ ๋จธ์ง€๋˜๋Š” ๊ฒƒ์ด๋‹ค.

1. ์ฝ”๋“œ ๋ณ€๊ฒฝ์‚ฌํ•ญ์„ ์ฃผ๊ธฐ์ ์œผ๋กœ ๋นˆ๋ฒˆํ•˜๊ฒŒ ๋จธ์ง€ํ•ด์•ผ ํ•œ๋‹ค.

  • ๋‚˜์ค‘์— ๋จธ์ง€ํ•˜๋ ค๊ณ  ํ•˜๋ฉด ์„œ๋กœ ๋‹ค๋ฅธ ์ฝ”๋“œ๋ฅผ ์–ด๋–ป๊ฒŒ ํ†ตํ•ฉํ•ด์„œ ์ ์šฉํ•ด ๋‚˜๊ฐˆ๊ป€์ง€ ๋ฌธ์ œ๊ฐ€ ๋ฐœ์ƒ
  • ์ฝ”๋“œ๋ฅผ ์ž‘์„ฑํ•˜๋Š” ์‹œ๊ฐ„๋ณด๋‹ค ๋จธ์ง€ํ•˜๋Š” ์‹œ๊ฐ„์ด ๋” ์˜ค๋ž˜ ๊ฑธ๋ฆฌ๋Š” ๋ฌธ์ œ๊ฐ€ ๋ฐœ์ƒ

  • ์ž‘์€ ๋‹จ์œ„๋กœ ๋‚˜๋ˆ„์–ด์„œ ํ†ตํ•ฉํ•˜๋Š” ๊ฒƒ์ด ์ค‘์š”

2. ํ†ตํ•ฉ์„ ์œ„ํ•œ ๋‹จ๊ณ„ (๋นŒ๋“œ, ํ…Œ์ŠคํŠธ, ๋จธ์ง€)์˜ ์ž๋™ํ™”

CD : Continuous Delivery(์ˆ˜๋™) or Deployment(์ž๋™)

์ง€์†์ ์ธ ์ œ๊ณต ,๋ฐฐํฌ

reference : https://www.youtube.com/watch?v=0Emq5FypiMM (๋“œ๋ฆผ์ฝ”๋”ฉ)

728x90
๋ฐ˜์‘ํ˜•