File tree Expand file tree Collapse file tree 8 files changed +108
-12
lines changed
matching-service/matching-application/app-api
user-service/user-application/app-api Expand file tree Collapse file tree 8 files changed +108
-12
lines changed Original file line number Diff line number Diff line change 5757 git config --local user.email "[email protected] " 5858 git config --local user.name "githubaction"
5959 git add ${{ env.HELM_VALUE }}
60- git commit -m "Update ${SERVICE_NAME} image tag to ${{ env.BUILD_ID }}"
61- git push --force origin ${{ env.HELM_BRANCH }}
60+ git commit -m "Update ${SERVICE_NAME} image tag to ${{ env.BUILD_ID }}" || echo "No changes to commit"
61+
62+ attempts=0
63+ max_attempts=3
64+
65+ while [ $attempts -lt $max_attempts ]; do
66+ if git push --force origin ${{ env.HELM_BRANCH }}; then
67+ echo "Push successful!"
68+ break
69+ else
70+ echo "Push failed due to remote ref lock. Attempting rebase with remote branch."
71+ # 원격 브랜치 최신 상태 반영
72+ git pull --rebase origin ${{ env.HELM_BRANCH }}
73+ attempts=$((attempts+1))
74+ if [ $attempts -eq $max_attempts ]; then
75+ echo "Push failed after $max_attempts attempts"
76+ exit 1
77+ fi
78+ echo "Retrying push..."
79+ fi
80+ done
Original file line number Diff line number Diff line change 5757 git config --local user.email "[email protected] " 5858 git config --local user.name "githubaction"
5959 git add ${{ env.HELM_VALUE }}
60- git commit -m "Update ${SERVICE_NAME} image tag to ${{ env.BUILD_ID }}"
61- git push --force origin ${{ env.HELM_BRANCH }}
60+ git commit -m "Update ${SERVICE_NAME} image tag to ${{ env.BUILD_ID }}" || echo "No changes to commit"
61+
62+ attempts=0
63+ max_attempts=3
64+
65+ while [ $attempts -lt $max_attempts ]; do
66+ if git push --force origin ${{ env.HELM_BRANCH }}; then
67+ echo "Push successful!"
68+ break
69+ else
70+ echo "Push failed due to remote ref lock. Attempting rebase with remote branch."
71+ # 원격 브랜치 최신 상태 반영
72+ git pull --rebase origin ${{ env.HELM_BRANCH }}
73+ attempts=$((attempts+1))
74+ if [ $attempts -eq $max_attempts ]; then
75+ echo "Push failed after $max_attempts attempts"
76+ exit 1
77+ fi
78+ echo "Retrying push..."
79+ fi
80+ done
Original file line number Diff line number Diff line change 5353
5454 - name : Commit and Push Helm Chart Changes
5555 run : |
56+ run: |
5657 cd helm-chart
5758 git config --local user.email "[email protected] " 5859 git config --local user.name "githubaction"
5960 git add ${{ env.HELM_VALUE }}
60- git commit -m "Update ${SERVICE_NAME} image tag to ${{ env.BUILD_ID }}"
61- git push --force origin ${{ env.HELM_BRANCH }}
61+ git commit -m "Update ${SERVICE_NAME} image tag to ${{ env.BUILD_ID }}" || echo "No changes to commit"
62+
63+ attempts=0
64+ max_attempts=3
65+
66+ while [ $attempts -lt $max_attempts ]; do
67+ if git push --force origin ${{ env.HELM_BRANCH }}; then
68+ echo "Push successful!"
69+ break
70+ else
71+ echo "Push failed due to remote ref lock. Attempting rebase with remote branch."
72+ # 원격 브랜치 최신 상태 반영
73+ git pull --rebase origin ${{ env.HELM_BRANCH }}
74+ attempts=$((attempts+1))
75+ if [ $attempts -eq $max_attempts ]; then
76+ echo "Push failed after $max_attempts attempts"
77+ exit 1
78+ fi
79+ echo "Retrying push..."
80+ fi
81+ done
Original file line number Diff line number Diff line change 5757 git config --local user.email "[email protected] " 5858 git config --local user.name "githubaction"
5959 git add ${{ env.HELM_VALUE }}
60- git commit -m "Update ${SERVICE_NAME} image tag to ${{ env.BUILD_ID }}"
61- git push --force origin ${{ env.HELM_BRANCH }}
60+ git commit -m "Update ${SERVICE_NAME} image tag to ${{ env.BUILD_ID }}" || echo "No changes to commit"
61+
62+ attempts=0
63+ max_attempts=3
64+
65+ while [ $attempts -lt $max_attempts ]; do
66+ if git push --force origin ${{ env.HELM_BRANCH }}; then
67+ echo "Push successful!"
68+ break
69+ else
70+ echo "Push failed due to remote ref lock. Attempting rebase with remote branch."
71+ # 원격 브랜치 최신 상태 반영
72+ git pull --rebase origin ${{ env.HELM_BRANCH }}
73+ attempts=$((attempts+1))
74+ if [ $attempts -eq $max_attempts ]; then
75+ echo "Push failed after $max_attempts attempts"
76+ exit 1
77+ fi
78+ echo "Retrying push..."
79+ fi
80+ done
Original file line number Diff line number Diff line change 5757 git config --local user.email "[email protected] " 5858 git config --local user.name "githubaction"
5959 git add ${{ env.HELM_VALUE }}
60- git commit -m "Update ${SERVICE_NAME} image tag to ${{ env.BUILD_ID }}"
61- git push --force origin ${{ env.HELM_BRANCH }}
60+ git commit -m "Update ${SERVICE_NAME} image tag to ${{ env.BUILD_ID }}" || echo "No changes to commit"
61+
62+ attempts=0
63+ max_attempts=3
64+
65+ while [ $attempts -lt $max_attempts ]; do
66+ if git push --force origin ${{ env.HELM_BRANCH }}; then
67+ echo "Push successful!"
68+ break
69+ else
70+ echo "Push failed due to remote ref lock. Attempting rebase with remote branch."
71+ # 원격 브랜치 최신 상태 반영
72+ git pull --rebase origin ${{ env.HELM_BRANCH }}
73+ attempts=$((attempts+1))
74+ if [ $attempts -eq $max_attempts ]; then
75+ echo "Push failed after $max_attempts attempts"
76+ exit 1
77+ fi
78+ echo "Retrying push..."
79+ fi
80+ done
Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ RUN mkdir -p ${MODULE_NAME}/build/extracted && (java -Djarmode=layertools -jar $
1313
1414FROM eclipse-temurin:17-jdk
1515VOLUME /tmp
16+ RUN ln -sf /usr/share/zoneinfo/Asia/Seoul /etc/localtime
17+ ENV TZ=Asia/Seoul
1618
1719RUN apt-get update && apt-get install -y curl
1820
Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ dependencies {
88 implementation(" org.springframework.boot:spring-boot-starter-web" )
99 implementation(" org.springframework.boot:spring-boot-starter-actuator" )
1010
11- // swagger
1211 implementation(" org.springdoc:springdoc-openapi-starter-webmvc-ui:2.6.0" )
1312
1413 implementation(" com.fasterxml.jackson.module:jackson-module-kotlin" )
Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ dependencies {
88 implementation(" org.springframework.boot:spring-boot-starter-web" )
99 implementation(" org.springframework.boot:spring-boot-starter-actuator" )
1010
11- // swagger
1211 implementation(" org.springdoc:springdoc-openapi-starter-webmvc-ui:2.6.0" )
1312
1413 // JWT
You can’t perform that action at this time.
0 commit comments