Skip to content

Commit b320e55

Browse files
committed
fix: latest 태그 삭제 및 알림 내용 수정
1 parent e23b937 commit b320e55

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/deploy-dev.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,11 @@ jobs:
108108
run: npm install semantic-release @semantic-release/commit-analyzer @semantic-release/release-notes-generator conventional-changelog-conventionalcommits
109109

110110
- name: Semantic Release
111+
id: get_version
111112
run: |
112113
OUTPUT=$(./node_modules/.bin/semantic-release --no-ci)
113114
echo "$OUTPUT"
114-
VERSION=$(echo "$OUTPUT" | grep -oP 'Published release \K[0-9.]+')
115+
VERSION=$(echo "$OUTPUT" | grep -oP 'Published prerelease \K[0-9.a-z-]+')
115116
if [ -z "$VERSION" ]; then
116117
echo "릴리즈할 새로운 버전이 없습니다. 배포를 건너뜁니다."
117118
exit 0
@@ -146,9 +147,7 @@ jobs:
146147
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
147148
run: |
148149
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$SEMANTIC_VERSION .
149-
docker tag $ECR_REGISTRY/$ECR_REPOSITORY:$SEMANTIC_VERSION $ECR_REGISTRY/$ECR_REPOSITORY:latest
150150
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$SEMANTIC_VERSION
151-
docker push $ECR_REGISTRY/$ECR_REPOSITORY:latest
152151
echo "image=$ECR_REGISTRY/$ECR_REPOSITORY:$SEMANTIC_VERSION" >> $GITHUB_ENV
153152
154153
- name: Get latest ECS task definition
@@ -182,7 +181,7 @@ jobs:
182181
uses: tsickert/[email protected]
183182
with:
184183
webhook-url: ${{ secrets.DISCORD_WEBHOOK }}
185-
embed-title: "프로덕션 배포 성공!"
184+
embed-title: "개발 서버 배포 성공!"
186185
embed-color: 65280
187186
embed-description: |
188187
새로운 버전이 성공적으로 배포되었습니다.
@@ -197,7 +196,7 @@ jobs:
197196
uses: tsickert/[email protected]
198197
with:
199198
webhook-url: ${{ secrets.DISCORD_WEBHOOK }}
200-
embed-title: "프로덕션 배포 실패!"
199+
embed-title: "개발 서버 배포 실패!"
201200
embed-color: 16711680
202201
embed-description: |
203202
배포 과정 중 오류가 발생했습니다. 아래 링크에서 로그를 확인하세요.

0 commit comments

Comments
 (0)