Repository

Source Repository

Create GitHub or GitLab Account

์—ฌ๊ธฐ์„œ๋Š” github๋ฅผ ์ƒ˜ํ”Œ๋กœ ์‚ฌ์šฉํ•˜๊ฒ ๋‹ค.

create source code repo

ํ”„๋กœ๊ทธ๋žจ ์†Œ์Šค๊ด€๋ฆฌ

github์—์„œ demo-angular repository๋ฅผ ์ƒ์„ฑํ•œ๋‹ค.

create argocd repo

์ฟ ๋ฒ„๋„คํ‹ฐ์Šค ๋ฐฐํฌ ๊ด€๋ฆฌ์šฉ

github์—์„œ argocd repository๋ฅผ ์ƒ์„ฑํ•œ๋‹ค.

local ์—์„œ demo-angular ํ”„๋กœ์ ํŠธ ์ƒ์„ฑ

angular default project๋กœ ์‚ฌ์šฉํ•œ๋‹ค.

# nodejs๊ฐ€ ์„ค์น˜๋˜ ์žˆ์–ด์•ผ ํ•œ๋‹ค.
npm install -g @angular/cli

mkdir ~/Desktop/devops
cd ~/Desktop/devops

ng new demo-angular --routing=true --style=scss

cd demo-angular

git branch -M main
git remote add origin git@github.com:teamsmiley/demo-angular.git
git push -u origin main

demo-argocd ํ”„๋กœ์ ํŠธ ์ƒ์„ฑ

cd ~/Desktop/devops

mkdir demo-argocd
cd demo-argocd

echo "# demo-argocd" >> Readme.md
git init
git add Readme.md
git commit -m "first commit"
git branch -M main
git remote add origin git@github.com:teamsmiley/demo-argocd.git
git push -u origin main

Last updated