๋ฐ์ํ github action3 GitHub Action - Build ์คํจ: Spring Boot profile ๐ GitHub Action Build ์คํจ : Spring Boot profile ํ์ฌ ํ๋ก์ ํธ์์ ๊ฐ๋ฐ & ์ด์๊ณ๋ก properties ํ์ผ์ ๋ถ๋ฆฌํด์ฃผ์์ต๋๋ค. ๊ธฐ์กด์ application.properties ์ ๋ชจ๋ ํฌํจ๋์ด ์๋ ํ๊ฒฝ ๋ณ์(DB์ ๋ณด)๋ค์ ๊ฐ๋ฐ(dev) & ์ด์(prod) ํ์ผ๋ก ๋ถ๋ฆฌ๋ฅผ ํด์ฃผ์์ต๋๋ค. ๊ทธ์ ๋ฐ๋ผ ์ง๋๋ฒ์ ์ ์ฉํ GitHub Action์ ํตํด Build๊ฐ ์คํจํ๋ ํ์์ด ๋ฐ์ํ์ต๋๋ค. Database์ ์ ๋ณด๋ฅผ ์ฝ์ด์ฌ ์ ์์ผ๋ Build๋ ๋น์ฐํ ์คํจํ๊ฒ ๋ฉ๋๋ค. ๋ฐ๋ผ์ github-action.yml ํ์ผ์ Maven build ๊ณผ์ ์ ์ฝ๋๋ฅผ ์์ ํฉ๋๋ค. -Pprod: profile๋ก prod๋ฅผ ์ฌ์ฉ ์ฝ๋์ ์์ฑํ Maven ์ต์ ์ ๋ํด ๊ฐ๋ตํ ์ค๋ช ๋๋ฆฌ๋ฉด ๋ค์๊ณผ ๊ฐ.. 2021. 6. 22. GitHub Action์ ํตํ CI ๊ตฌ์ถํ๊ธฐ (SpringBoot + Maven) • ์๋ ํ์ธ์~ ์ด์ ์ ์ด์ํ๋ ๋ธ๋ก๊ทธ ๋ฐ GitHub, ๊ณต๋ถ ๋ด์ฉ์ ์ ๋ฆฌํ๋ Study-GitHub ๊ฐ ์์ต๋๋ค! • ๋ค์ด๋ฒ ๋ธ๋ก๊ทธ • GitHub • Study-GitHub • ๐ ๐ GitHub Action์ ํตํ Build ์๋ํ (SpringBoot + Maven) ์๋ ํ์ธ์! ์ด๋ฒ์ ์ ๋ฆฌํ ๋ด์ฉ์ GitHub Action์ ํตํด ํ๋ก์ ํธ๋ฅผ ์๋์ผ๋ก Build ํ๋๋ก ์ค์ ํด๋ณด๊ฒ ์ต๋๋ค. ํ์ฌ AWS EC2์ Spring Boot ์ ํ๋ฆฌ์ผ์ด์ ์ด ์คํ๋๊ณ ์๋๋ฐ์, ๋ฐฐํฌํ๊ธฐ๊น์ง์ ๊ณผ์ ์ ๋ค์๊ณผ ๊ฐ์ต๋๋ค. ๋ก์ปฌ์์ ์ฝ๋ ์์ -> Commit -> GitHub PR -> Merge AWS์์ ์์ ๋ ์ฝ๋ pull -> ์คํ์ค์ธ ์ ํ๋ฆฌ์ผ์ด์ ์ ์ง(kill) -> ๋ฉ์ด๋ธ ๋น๋ -> ์ ํ๋ฆฌ์ผ์ด์ ์คํ ์๊ฐ์ด.. 2021. 5. 14. GitHub Action - Build ์คํจ: Non-readable POM ... • ์๋ ํ์ธ์~ ์ด์ ์ ์ด์ํ๋ ๋ธ๋ก๊ทธ ๋ฐ GitHub, ๊ณต๋ถ ๋ด์ฉ์ ์ ๋ฆฌํ๋ Study-GitHub ๊ฐ ์์ต๋๋ค! • ๋ค์ด๋ฒ ๋ธ๋ก๊ทธ • GitHub • Study-GitHub • ๐ ํ๋ก์ ํธ์ Github Action ์ ์ ์ฉํด์ ๋น๋๋ฅผ ์งํํ๋ ค๋๋ฐ... ์๋์ ๊ฐ์ด ๊ณ์ํด์ ๋น๋์ ์คํจํ์ต๋๋ค. ์ ์ค๋ฅ ๋ด์ฉ์ ๋ค์๊ณผ ๊ฐ์๋ฐ์.. Non-readable POM /home/runner/work/ ... /pom.xml (No such file or directory) => pom.xml ํ์ผ์ ์ฝ์ ์ ์๋ค๋ ์ค๋ฅ์ ๋๋ค. pom.xml ํ์ผ์ด root ๋๋ ํ ๋ฆฌ๊ฐ ์๋ back ํด๋์ ํ์์ ์์ผ๋ฏ๋ก ์๋์ ๊ฐ์ด ๊ฒฝ๋ก๋ฅผ ๋ง์ถฐ์ฃผ์ด์ผ ํฉ๋๋ค. back/pom.xml ๊ทธ๋ผ ์์ ๊ฐ์ด pom.xml ํ์ผ์ ์ฐพ์.. 2021. 5. 8. ์ด์ 1 ๋ค์ ๋ฐ์ํ