We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d50125b commit f1d4524Copy full SHA for f1d4524
โ.github/workflows/github-actions.ymlโ
@@ -87,8 +87,15 @@ jobs:
87
88
# ์ต์ ์ด๋ฏธ์ง pull & app ๊ต์ฒด
89
echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
90
+ if docker ps -a --format '{{.Names}}' | grep -qx 'interview-be-nginx'; then
91
+ # ์ด๋ฏธ nginx๊ฐ ํ ๋ฒ์ด๋ผ๋ ์ฌ๋ผ๊ฐ ์ ์ด ์์ผ๋ฉด app๋ง ๊ต์ฒด
92
docker compose pull app
93
docker compose up -d app
94
+ else
95
+ # nginx๊ฐ ํ ๋ฒ๋ ์์๋ค๋ฉด ์ฒ์์ ๋ ๋ค ๋์์ผ ํจ
96
+ docker compose pull
97
+ docker compose up -d
98
+ fi
99
100
# ๋ถํ์ํ ์ด๋ฏธ์ง ์ ๋ฆฌ
101
docker image prune -f
0 commit comments