Skip to content

Commit

Permalink
[BE] refactor: 들여쓰기 제거 (#24)
Browse files Browse the repository at this point in the history
Signed-off-by: EunJiJung <[email protected]>
  • Loading branch information
bianbbc87 committed Feb 9, 2025
1 parent ad4e9fa commit 5ebb7e5
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/actions/ecr-push/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,29 +71,29 @@ runs:
# Amazon ECR 로그인
- name: Login to Amazon ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v1
uses: aws-actions/amazon-ecr-login@v2

- name: Generate dynamic bootstrap.yml & application.yml
shell: bash
run: |
if [[ "${{ inputs.container_name }}" == "config-server" ]]; then
cat <<EOF > ${{ inputs.folder }}/src/main/resources/bootstrap.yml
encrypt:
key: ${{ inputs.config_private_ip }}
EOF
encrypt:
key: ${{ inputs.config_private_ip }}
EOF

rm -f ${{ inputs.folder }}/src/main/resources/application.yml
echo "${{ inputs.config_application_yml }}" | base64 --decode > ${{ inputs.folder }}/src/main/resources/application.yml

else
cat <<EOF > ${{ inputs.folder }}/src/main/resources/bootstrap.yml
spring:
application:
name: ${{ inputs.container_name }}
cloud:
config:
uri: http://${{ inputs.config_private_ip }}:${{ inputs.config_port }}
EOF
spring:
application:
name: ${{ inputs.container_name }}
cloud:
config:
uri: http://${{ inputs.config_private_ip }}:${{ inputs.config_port }}
EOF
fi

# Docker 빌드 및 ECR에 푸시
Expand Down

0 comments on commit 5ebb7e5

Please sign in to comment.