File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ name: Build and Push Backend Image to ACR
33# ์ํฌํ๋ก์ฐ ํธ๋ฆฌ๊ฑฐ ์ค์
44on :
55 push :
6- branches : [ dev-test ] # TODO(Godeok Kim): dev ๋ธ๋์น์ push๋ ๋๋ง ์คํํ๋ ๊ฒ์ผ๋ก ํ์ผ๋ ์ดํ ํ
์คํธ์ ๋ฉ์ธ์ ๋ถ๋ฆฌํ๋ ์์
์ด ํ์
6+ branches : [ dev-test, main ] # dev-test์ main ๋ธ๋์น์ push๋ ๋ ์คํ
77 workflow_dispatch : {} # GitHub Actions ํญ์์ ์๋์ผ๋ก ์คํ ๊ฐ๋ฅ
88
99jobs :
3333 id : meta # ์ด step์ ์ถ๋ ฅ์ ์ฐธ์กฐํ๊ธฐ ์ํ ID
3434 uses : docker/metadata-action@v5
3535 with :
36- images : ${{ secrets.ACR_LOGIN_SERVER }}/${{ secrets.ACR_REPOSITORY_NAME_TEST }}
36+ images : ${{ secrets.ACR_LOGIN_SERVER }}/${{ github.ref == 'refs/heads/dev-test' && secrets.ACR_REPOSITORY_NAME_TEST || secrets.ACR_REPOSITORY_NAME }}
3737 # ์์ ํ๊ทธ: main ๋ธ๋์น๋ฉด latest, ๊ทธ ์ธ์๋ ๋ธ๋์น๋ช
, ๊ทธ๋ฆฌ๊ณ ํญ์ Git SHA ํ๊ทธ ์ถ๊ฐ
3838 tags : |
3939 type=ref,event=branch
5858 echo "${{ steps.meta.outputs.tags }}"
5959 echo "Checking image in ACR..."
6060 echo "Basic tag information:"
61- az acr repository show-tags --name ${{ secrets.ACR_LOGIN_SERVER }} --repository ${{ secrets.ACR_REPOSITORY_NAME_TEST }} --output table
61+ az acr repository show-tags --name ${{ secrets.ACR_LOGIN_SERVER }} --repository ${{ github.ref == 'refs/heads/dev-test' && secrets.ACR_REPOSITORY_NAME_TEST || secrets.ACR_REPOSITORY_NAME }} --output table
You canโt perform that action at this time.
0 commit comments