Skip to content

Commit

Permalink
[BE] refactor: EOF -> echo로 변경 (#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 9b0848d commit 5a9d7f6
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions .github/actions/ecr-push/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,23 +77,22 @@ runs:
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
# Generate bootstrap.yml for config-server
echo "encrypt:" > ${{ inputs.folder }}/src/main/resources/bootstrap.yml
echo " key: ${{ inputs.config_private_ip }}" >> ${{ inputs.folder }}/src/main/resources/bootstrap.yml
# Generate application.yml
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
# Generate bootstrap.yml for other services
echo "spring:" > ${{ inputs.folder }}/src/main/resources/bootstrap.yml
echo " application:" >> ${{ inputs.folder }}/src/main/resources/bootstrap.yml
echo " name: ${{ inputs.container_name }}" >> ${{ inputs.folder }}/src/main/resources/bootstrap.yml
echo " cloud:" >> ${{ inputs.folder }}/src/main/resources/bootstrap.yml
echo " config:" >> ${{ inputs.folder }}/src/main/resources/bootstrap.yml
echo " uri: http://${{ inputs.config_private_ip }}:${{ inputs.config_port }}" >> ${{ inputs.folder }}/src/main/resources/bootstrap.yml
fi
# Docker 빌드 및 ECR에 푸시
Expand Down

0 comments on commit 5a9d7f6

Please sign in to comment.