๋ฐ˜์‘ํ˜•

Git 3

[AWS/GIT] GitHub Action์„ ์ด์šฉํ•œ ์ž๋™ ๋ฐฐํฌ ๋งŒ๋“ค๊ธฐ - ํ”„๋ก ํŠธ

๐Ÿฑ GitHub Action์„ ์ด์šฉํ•œ ์ž๋™ ๋ฐฐํฌ ๋งŒ๋“ค๊ธฐ โœ… S3 CloudFront์™€ GitHub Action์„ ์ด์šฉํ•ด์„œ CI/CD ๋งŒ๋“ค๊ธฐ โœ… ๋งŒ๋“œ๋Š” ์ด์œ ๋Š” ์†Œ์Šค๋ฅผ push ํ•˜๋ฉด ๋ฐ”๋กœ ์ธํ”„๋ผ์— ๋ฐฐํฌํ•˜๋Š” ํ™˜๊ฒฝ์„ ๋งŒ๋“ค๊ธฐ ์œ„ํ•ด์„œ. โœ… ๋ฐฐํฌ ํŒŒ์ดํ”„๋ผ์ธ, CI/CD ๋ผ๊ณ  ํ•จ. 1. IAM ๊ถŒํ•œ ์ถ”๊ฐ€ (1) IAM ์„œ๋น„์Šค ์ ‘์†, ์‚ฌ์šฉ์ž ์ด๋ฆ„ ํด๋ฆญ ! (2) ๊ถŒํ•œ ์ถ”๊ฐ€ ํด๋ฆญ ! (3) ๊ธฐ์กด ์ •์ฑ… ์ง์ ‘ ์—ฐ๊ฒฐ -> CloudFrontFullAccess ์„ ํƒํ•˜์—ฌ ๊ถŒํ•œ ์ถ”๊ฐ€ (4) ๊ถŒํ•œ์— S3, CloudFront์— ๋Œ€ํ•œ ๊ถŒํ•œ ํ™•์ธ ์™„๋ฃŒ ! 2. GitHub Action์„ ์ด์šฉํ•œ ๋ฐฐํฌ ์ค€๋น„ (1) GitHub repository ๋งŒ๋“ค๊ณ  Pycharm ์—ฐ๋™ํ•˜๊ธฐ *๏ธโƒฃ ๋ฐฉ๋ฒ• ! [GIT] Git๊ณผ Pycharm ์—ฐ๋™ํ•˜๊ธฐ ๐Ÿฑ G..

[GIT] Git๊ณผ Pycharm ์—ฐ๋™ํ•˜๊ธฐ

๐Ÿฑ Git๊ณผ Pycharm ์—ฐ๋™ํ•˜๊ธฐ 1. Git๊ณผ Pycharm ์—ฐ๋™ํ•˜๊ธฐ (1) GitHub repository ๋งŒ๋“ค๊ธฐ (2) ํŒŒ์ด์ฐธ ์ ‘์†ํ•ด์„œ ์˜ค๋ฅธ ์ชฝ ์œ„์˜ 'Get from VCS' *๏ธโƒฃ ์ž‘์—… ์ค‘์ธ ํด๋”๋‚˜ ํŒŒ์ผ์ด ์—ด๋ ค์žˆ๋‹ค๋ฉด, ํŒŒ์ผ -> Close Project ! (3) Github repo์˜ URL ๋ณต์‚ฌํ•ด์„œ URL ๋ถ€๋ถ„์— ๋ถ™์—ฌ๋„ฃ๊ณ  Clone ! (4) ์—ฐ๋™ ์™„๋ฃŒ ! (4) ํŒŒ์ด์ฐธ๊ณผ ๊นƒํ—ˆ๋ธŒ๋ฅผ ๋” ์ž์œ ๋กญ๊ฒŒ ์‚ฌ์šฉํ•˜๊ธฐ ์œ„ํ•ด์„œ "ํŒŒ์ผ -> setting -> version control -> Github" (5) JetBrains ์‚ฌ์ดํŠธ์—์„œ ๊นƒํ—ˆ๋ธŒ ๋กœ๊ทธ์ธ ... ๊ณผ์ •์„ ๊ฑฐ์น˜๋ฉด ๋จ ! 2. Git๊ณผ Pycharm ์—ฐ๋™ ํ™•์ธ ๋ฐ commit & push ์‚ฌ์šฉ. (1) ํŒŒ์ผ ์ƒ์„ฑ ๋˜๋Š” ์ˆ˜์ • ํ›„, ํ™”๋ฉด ์˜ค๋ฅธ์ชฝ ์œ„์˜..

[GIT] GitHub Action

๐Ÿฑ GitHub Action 1. GitHub Action โœ… GitHub Action์€ Github์—์„œ ์ œ๊ณตํ•˜๋Š” ๋ฐฐํฌ ์„œ๋น„์Šค. โœ… Github๊ฐ€ MS์— ์ธ์ˆ˜๋˜๋ฉด์„œ ๊ธฐ์กด์˜ ์†Œ์Šค์ €์žฅ์†Œ์˜ ๊ธฐ๋Šฅ์—์„œ DevOps ํ”Œ๋žซํผ์œผ๋กœ ๋ฐœ์ „. โœ… ๋น„์Šทํ•œ ์„œ๋น„์Šค๋กœ๋Š” Gitlab, Bitbucket ๋“ฑ์ด ์žˆ์Œ. โœ… ์š”์ฆ˜ ํŠธ๋žœ๋“œ๋Š” CI/CD์˜ ํ†ตํ•ฉ. CI : Continuous Integration, ํ˜•์ƒ๊ด€๋ฆฌ๋กœ ๊ณ„์† ํ†ตํ•ฉํ•˜๋Š” ๊ฒƒ, (Github๋งŒ ์“ฐ๋ฉด CI) CD : Continuous Delivery, ์†Œ์Šค๊ฐ€ ์‹ค์ œ ์šด์˜ ์„œ๋น„์Šค์— ๋”œ๋ฆฌ๋ฒ„๋ฆฌ๋˜๋Š” ๊ฒƒ โœ… ์†Œ์Šค ์ €์žฅ์†Œ์™€ ๋ฐฐํฌ ์‹œ์Šคํ…œ์„ ํ†ตํ•ฉํ•˜๋Š” ๊ฒƒ. โœ… ์•„ํ‚คํ…์ฒ˜์˜ ๋ณ€ํ™”๋กœ ์ž‘์•„์ง„ ์–ดํ”Œ๋ฆฌ์ผ€์ด์…˜๋“ค์„ ๋ถ€๋‹ด์—†์ด ์ž์ฃผ ๋ฐฐํฌํ•˜๊ธฐ ์œ„ํ•จ. โœ… GitHub Action์€ ๊ฐ„๋‹จํ•˜๊ฒŒ ์„œ๋ฒ„์— ์†Œ์Šค๋ฅผ ๋ฐฐํฌํ•˜๋Š” ..

๋ฐ˜์‘ํ˜•