๐ฆ CD ํ์ดํ๋ผ์ธ ์์ #357
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
๐ ๊ด๋ จ ์ด์
#356
โจ ์์ ํ ๋ด์ฉ
GitHub Actions์์ Deploy ๋จ๊ณ ์ export DOCKERHUB_USERNAME, export IMAGE_TAG๋ฅผ ์ฌ์ฉํ๋๋ฐ ์ด ๊ฐ๋ค์ด SSH ์ธ์ ๋ด์์๋ง ์ ํจํด ์๋ฒ ์ฌ๋ถํ ํ ์ฌ๋ผ์ก์ต๋๋ค.
SSH ์ธ์ ์์ exportํ ํ๊ฒฝ๋ณ์๋ ์๋ฒ ์ฌ๋ถํ ํ Docker Compose๊ฐ ๋ณ์๋ฅผ ์ฝ์ง ๋ชปํฉ๋๋ค.
IMAGE_TAG๋ ๋งค ๋ฐฐํฌ ์์ ์ ${{ github.sha }} ๊ฐ์ผ๋ก ๋ณํ๊ธฐ ๋๋ฌธ์ ๊ณ ์ .env์ ๋ฃ๊ธฐ๋ ๊ณค๋ํด์ ๋งค ๋ฐฐํฌ ์ ์ต์ SHA์ Docker Hub ๊ณ์ ์ผ๋ก /home/ubuntu/classlog/.env๋ฅผ ๊ฐฑ์ ํ๋๋ก ์์ ํ์ต๋๋ค.
๐ PR Point
X
๐ฐ ์ฐธ๊ณ ์ฌํญ
X
๐ท ์คํฌ๋ฆฐ์ท ๋๋ GIF
X