Skip to content

Commit

Permalink
chore: config 서버 주소 공개
Browse files Browse the repository at this point in the history
  • Loading branch information
ddolboghi committed May 13, 2024
1 parent 6ded5f2 commit dcc7545
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
15 changes: 4 additions & 11 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Config server CI with gradle
name: Eureka server CI with gradle

on:
push:
Expand All @@ -20,13 +20,6 @@ jobs:
java-version: '17'
distribution: 'temurin'

- name: Set Yaml
uses: microsoft/variable-substitution@v1
with:
files: ./src/main/resources/application.yml
env:
spring.config.import: ${{ secrets.CONFIG_SERVER_URL }}

- name: Grant execute permission for gradlew
run: chmod +x gradlew

Expand Down Expand Up @@ -69,13 +62,13 @@ jobs:
id: check-container
run: |
if sudo docker ps -a | grep -q eureka-server; then
echo "running=true" >> $GITHUB_OUTPUT
echo "eureka-server-running=true" >> $GITHUB_OUTPUT
else
echo "running=false" >> $GITHUB_OUTPUT
echo "eureka-server-running=false" >> $GITHUB_OUTPUT
fi
- name: Stop and remove container
if: steps.check-container.outputs.running == 'true'
if: steps.check-container.outputs.eureka-server-running == 'true'
run: sudo docker stop eureka-server

- name: Run new docker container
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ spring:
application:
name: eureka-server
config:
import: ${config-server}
import: optional:configserver:http://43.203.131.185:8071
cloud:
loadbalancer:
enabled: true

0 comments on commit dcc7545

Please sign in to comment.