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 f4a181f commit ad4e9fa
Showing 1 changed file with 10 additions and 14 deletions.
24 changes: 10 additions & 14 deletions .github/actions/ecr-push/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,29 +77,25 @@ runs:
shell: bash
run: |
if [[ "${{ inputs.container_name }}" == "config-server" ]]; then
# Config Server용 bootstrap.yml 생성 (private_ip는 암호화 key)
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에 푸시
- name: Build and push Docker image to Amazon ECR
shell: bash
Expand Down

0 comments on commit ad4e9fa

Please sign in to comment.