Skip to content

Commit 3e815f6

Browse files
committed
๐Ÿš‘๏ธ ์ตœ์‹  ์ฝ”๋“œ ๋ฐ˜์˜ ์•ˆ๋˜๋Š” ๋ฌธ์ œ ํ•ด๊ฒฐ
1 parent 730dfeb commit 3e815f6

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

โ€Ž.github/workflows/upload_docker_image_to_acr.ymlโ€Ž

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ jobs:
1515
# 1. ์†Œ์Šค ์ฝ”๋“œ ์ฒดํฌ์•„์›ƒ
1616
- name: Checkout repository
1717
uses: actions/checkout@v4
18+
with:
19+
fetch-depth: 0 # ๋ชจ๋“  ํžˆ์Šคํ† ๋ฆฌ ๊ฐ€์ ธ์˜ค๊ธฐ
20+
ref: ${{ github.ref }} # ํ˜„์žฌ ๋ธŒ๋žœ์น˜์˜ ์ตœ์‹  ์ปค๋ฐ‹ ์‚ฌ์šฉ
1821

1922
# 2. Azure ๋กœ๊ทธ์ธ (Service Principal ์‚ฌ์šฉ)
2023
- name: Log in to Azure
@@ -52,6 +55,7 @@ jobs:
5255
push: true # ๋นŒ๋“œ ํ›„ ํ‘ธ์‹œ ์‹คํ–‰
5356
tags: ${{ steps.meta.outputs.tags }} # ์œ„ metadata step์—์„œ ์ƒ์„ฑ๋œ ํƒœ๊ทธ ์‚ฌ์šฉ
5457
labels: ${{ steps.meta.outputs.labels }} # ์œ„ metadata step์—์„œ ์ƒ์„ฑ๋œ ๋ผ๋ฒจ ์‚ฌ์šฉ
58+
no-cache: true # ์บ์‹œ ๋น„ํ™œ์„ฑํ™”
5559

5660
# 6. ACR์— ํ‘ธ์‹œ๋œ ์ด๋ฏธ์ง€ ํ™•์ธ
5761
- name: Verify pushed image

โ€ŽDockerfileโ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,5 @@ COPY . .
3636
# Expose port
3737
EXPOSE 8000
3838

39-
# Command to run the application
40-
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]
39+
# Command to run the application with --reload option for development
40+
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000", "--reload"]

0 commit comments

Comments
ย (0)