Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโ€™ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

๐Ÿ”€ :: code-deploy๋ฅผ ์‚ฌ์šฉํ•˜์ง€ ์•Š์Œ์œผ๋กœ ์ธํ•œ CD ์Šคํฌ๋ฆฝํŠธ ์ˆ˜์ • #385

Merged
merged 17 commits into from
Jul 5, 2024

Conversation

NohGaSeong
Copy link
Member

๐Ÿ’ก ๋ฐฐ๊ฒฝ ๋ฐ ๊ฐœ์š”

code-deploy๋ฅผ ์‚ฌ์šฉํ•˜์ง€ ์•Š์Œ์œผ๋กœ ์ธํ•œ CD ์ˆ˜์ •

๐Ÿ“ƒ ์ž‘์—…๋‚ด์šฉ

  • mater๋กœ push๊ฐ€ ๋˜๋Š” ๊ฒฝ์šฐ ๊ธฐ์กด CD๋ฅผ ํ• ๋•Œ ์ง„ํ–‰๋˜๋˜ ๊ณผ์ • + ssh ๋กœ ์„œ๋ฒ„ ์ ‘๊ทผ ์ดํ›„ docker compose restart ๋ฅผ ํ•˜๋Š” ๋กœ์ง์„ ์ถ”๊ฐ€ํ•˜์˜€์Šต๋‹ˆ๋‹ค.

Huuuunee and others added 16 commits May 29, 2024 00:00
CD ๊ณ ์น˜๊ธฐ
๋งˆ์Šคํ„ฐ ๋ธŒ๋žœ์น˜๋กœ ๋ณ‘ํ•ฉ
master์— ๋ณ€๊ฒฝ์‚ฌํ•ญ hotfix
์˜ˆ์™ธ fix๋ฅผ master์— ๋จธ์ง€ํ•ฉ๋‹ˆ๋‹ค.
develop ๋ณ€๊ฒฝ์‚ฌํ•ญ์„ master์— ๋จธ์ง€ํ•ฉ๋‹ˆ๋‹ค!
Copy link
Member

@Huuuunee Huuuunee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

๊ตณ๊ตณ

key: ${{ secrets.REMOTE_SSH_KEY }}
port: ${{ secrets.REMOTE_SSH_PORT }}
script: |
docker pull ${{ secrets.REPO_URL }}:${{ secrets.IMAGE_TAG }}
Copy link
Collaborator

@HumanIearning HumanIearning Jul 4, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ํ…Œ์ŠคํŠธํ•ด๋ณด์…จ๋‚˜์š”?
์ˆ˜๋™์œผ๋กœ ์ ‘์†ํ–ˆ์„๋•Œ๋Š” ์™œ์ธ์ง€ ๋ชจ๋ฅด๊ฒ ๋Š”๋ฐ aws credential ์—๋Ÿฌ๊ฐ€ ๋– ์„œ loginํ•˜๊ณ  pullํ–ˆ์—ˆ๋Š”๋ฐ
์•ˆ ๋œฐ ์ˆ˜๋„ ์žˆ์–ด์„œ ์ผ๋‹จ์€ ๋ƒ…๋‘๊ณ  ๊ด€๋ จ ์—๋Ÿฌ ๋ฐœ์ƒํ•˜๋ฉด ecr์— ์žˆ๋Š” aws ecr login ๋ช…๋ น์–ด ํ•œ์ค„ ๋ณต์‚ฌํ•ด์„œ ๋ฏผ๊ฐํ•œ ๋ถ€๋ถ„ secret์œผ๋กœ ๊ฐ€๋ฆฌ๊ณ  ์ถ”๊ฐ€ํ•ด์ฃผ๋ฉด ๋ ๊ฑฐ๊ฐ™์Šต๋‹ˆ๋‹ค.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ํ…Œ์ŠคํŠธ๋Š” ํ•ด๋ดค๋Š”๋ฐ local์—์„œ credentail ์—๋Ÿฌ๊ฐ€ ๋œจ๋Š” ๊ฒฝ์šฐ๋ฅผ ๊ณ ๋ คํ•˜์ง€ ๋ชปํ–ˆ๋„ค์š” :( ์ถ”๊ฐ€ํ•˜๊ณ  ๋ฉ˜์…˜๋“œ๋ฆฌ๊ฒ ์Šต๋‹ˆ๋‹ค

@NohGaSeong NohGaSeong merged commit 31597cc into develop Jul 5, 2024
1 check passed
@NohGaSeong NohGaSeong deleted the ops/cd-test branch July 5, 2024 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants