๋ฐ˜์‘ํ˜•

Devops/Git 4

[Git] submodule / subtree

Intro ์•ˆ๋…•ํ•˜์„ธ์š”. ์ด๋ฒˆ ์‹œ๊ฐ„์—๋Š” git submodule / subtree ์— ๋Œ€ํ•ด ์•Œ์•„๋ณด๊ฒ ์Šต๋‹ˆ๋‹ค. submodule # Goal ํ•˜๋‚˜ ์ด์ƒ์˜ ์™ธ๋ถ€ ์ €์žฅ์†Œ (git ์ €์žฅ์†Œ)๋ฅผ ํ˜„์žฌ ํ”„๋กœ์ ํŠธ์— ํฌํ•จ์‹œํ‚ค๊ธฐ ์œ„ํ•ด ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค. # How to work ๋ถ€๋ชจ ์ €์žฅ์†Œ(repository)๋Š” ์„œ๋ธŒ๋ชจ๋“ˆ์ด๋ผ ๋ถˆ๋ฆฌ๋Š” ๋ณ„๋„์˜ ์ €์žฅ์†Œ๋ฅผ ๊ฐ€๋ฆฌํ‚ค๋Š” ๋งํฌ๋งŒ์„ ์œ ์ง€ํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ์ด ์ €์žฅ์†Œ๋Š” ์ž์ฒด์ ์œผ๋กœ ๋…๋ฆฝ์ ์ธ Git ์ €์žฅ์†Œ๋กœ์„œ ๊ด€๋ฆฌ๋˜๋ฉฐ, ๋ถ€๋ชจ ์ €์žฅ์†Œ์—๋Š” ํ•ด๋‹น ์„œ๋ธŒ๋ชจ๋“ˆ์˜ ์ƒํƒœ(์ปค๋ฐ‹ ํ•ด์‹œ)๋งŒ์„ ๊ธฐ๋กํ•ฉ๋‹ˆ๋‹ค. # Usage ์„œ๋ธŒ๋ชจ๋“ˆ ์ถ”๊ฐ€: git submodule add ๋ถ€๋ชจ ์ €์žฅ์†Œ์—์„œ ์„œ๋ธŒ๋ชจ๋“ˆ ์—…๋ฐ์ดํŠธ: git submodule update --init --recursive subtree # Goal ์™ธ๋ถ€ ์ €์žฅ์†Œ์˜ ์ผ๋ถ€ ๋˜๋Š” ์ „์ฒด..

Devops/Git 2024.01.22

[Git Actions] Warning: Failed to download action XXXXXXX: Response status code does not indicate success: 503 (Service Unavailable) ์—๋Ÿฌ

Intro API ๋ฐฐํฌ ์ค‘ ๊ฐ‘์ž๊ธฐ ๋‹ค์Œ์˜ ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒํ–ˆ์Šต๋‹ˆ๋‹ค. Warning: Failed to download action action-slack-notify Error: Response status code does not indicate success: 503 (Service Unavailable) Why? deploy ๊ด€๋ จํ•ด์„œ ์ˆ˜์ •์‚ฌํ•ญ์ด ์—†์—ˆ๋Š”๋ฐ๋„, ๋ถˆ๊ตฌํ•˜๊ณ  ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒํ•ด์„œ ๋ฌด์Šจ์ผ์ธ๊ฐ€ ์‹ถ์—ˆ์Šต๋‹ˆ๋‹ค. ๊ตฌ๊ธ€๋ง ์‹œ์ž‘... ๋น„์Šทํ•œ ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒํ•œ ๊ฒƒ ๊ฐ™์•„ ๊ธ€์„ ์ฝ์–ด๋ดค๋Š”๋ฐ์š”, ๋ถˆ๊ณผ ๋ช‡๋ถ„ ์ „๋ถ€ํ„ฐ ๊ณ„์† comment๊ฐ€ ์‹ค์‹œ๊ฐ„์œผ๋กœ ๋‹ฌ๋ฆฌ๋”๋ผ๊ณ ์š”! github ๋‚ด ์—๋Ÿฌ์ธ ๊ฒƒ ๊ฐ™์•˜์–ด์š”. ๋ช‡๋ถ„ ํ›„์— ๋‹ค์‹œ ๋ฐฐํฌํ•ด๋ณด๋‹ˆ, ์ •์ƒ ์ž‘๋™ํ–ˆ์Šต๋‹ˆ๋‹ค :) ์ด๋Ÿฐ ์ผ€์ด์Šค๋„ ์žˆ์–ด์„œ ์‹ ๊ธฐํ–ˆ๋„ค์š”. https://github.com/actions/..

Devops/Git 2023.09.05

[Git] Gradle JDK 17์šฉ Github ์›Œํฌํ”Œ๋กœ Github workflow ์ž‘์„ฑ ๋ฐฉ๋ฒ• (Git Actions)

Intro ์•ˆ๋…•ํ•˜์„ธ์š”. ์ด๋ฒˆ ์‹œ๊ฐ„์—๋Š” JDK 17์šฉ Github ์›Œํฌํ”Œ๋กœ Github workflow ์ž‘์„ฑ ๋ฐฉ๋ฒ•์— ๋Œ€ํ•ด ์•Œ์•„๋ณด๊ฒ ์Šต๋‹ˆ๋‹ค. ์ฐธ๊ณ ๋กœ github workflow์— ๋Œ€ํ•ด ๊ถ๊ธˆํ•˜์‹  ๋ถ„ ๊ณ„์‹œ๋ฉด ์ผ์ „์— ์ œ๊ฐ€ ์ž‘์„ฑํ•œ ํฌ์ŠคํŒ… ๊ธ€ ([GitHub Actions] GitHub Actions์ด๋ž€? ๊ตฌ์„ฑ์š”์†Œ ๋ฐ Workflows ํŒŒ์ผ ์˜ˆ์ œ ์‚ดํŽด๋ณด๊ธฐ) ์ฐธ๊ณ  ๋ถ€ํƒ๋“œ๋ฆฝ๋‹ˆ๋‹ค. How to do SpringBoot + Java Version 17 + Gradle ๊ธฐ์ค€ ์ž‘์„ฑ๋ฒ•์€ ์•„๋ž˜์™€ ๊ฐ™์Šต๋‹ˆ๋‹ค. # This is a basic workflow to help you get started with Actions name: api-server # Controls when the workflow will run on: # Tri..

Devops/Git 2023.01.29

[GitHub Actions] GitHub Actions์ด๋ž€? ๊ตฌ์„ฑ์š”์†Œ ๋ฐ Workflows ํŒŒ์ผ ์˜ˆ์ œ ์‚ดํŽด๋ณด๊ธฐ

Intro ์•ˆ๋…•ํ•˜์„ธ์š”. ์š”์ƒˆ ํšŒ์‚ฌ์—์„œ git actions์„ ํ†ตํ•ด CI/CD ๋ฅผ ๊ตฌ์ถ•ํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. git actions ์ด ๋ฌด์—‡์ด๊ณ , ๊ตฌ์„ฑ์š”์†Œ ๋ฐ workflows ์›Œํฌํ”Œ๋กœ ํŒŒ์ผ ์˜ˆ์ œ์— ๋Œ€ํ•ด ์ •๋ฆฌํ•ด ๋†“์œผ๋ฉด ์ข‹์„ ๊ฒƒ ๊ฐ™์•„ ์ด๋ฒˆ ์‹œ๊ฐ„์—๋Š” Github Actions ์— ๋Œ€ํ•ด ์•Œ์•„๋ณด๋ ค๊ณ  ํ•ด์š”. What is a Git Actions? GitHub Actions๋Š” build, test, deployment pipeline ์„ ์ž๋™ํ™”ํ•  ์ˆ˜ ์žˆ๋Š” CI/CD(์—ฐ์† ํ†ตํ•ฉ ๋ฐ ์ง€์†์ ์ธ ์—…๋ฐ์ดํŠธ) ํ”Œ๋žซํผ์ž…๋‹ˆ๋‹ค. repository์— ๋Œ€ํ•œ ๋ชจ๋“  pull request ์„ build ๋ฐ testํ•˜๊ฑฐ๋‚˜ merged pull requests ์„ ํ”„๋กœ๋•์…˜์— ๋ฐฐํฌํ•˜๋Š” ์›Œํฌํ”Œ๋กœ๋ฅผ ๋งŒ๋“ค ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. GitHub Actions์˜ ๊ตฌ์„ฑ ..

Devops/Git 2023.01.29
๋ฐ˜์‘ํ˜•