File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 5959 echo "spring.cloud.aws.credentials.access-key: ${{ secrets.AWS_ACCESS_KEY_ID }}" >> src/main/resources/application-secrets.yml
6060 echo "spring.cloud.aws.credentials.secret-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}" >> src/main/resources/application-secrets.yml
6161 echo "spring.cloud.aws.s3.bucket: ${{ secrets.AWS_S3_BUCKET_NAME }}" >> src/main/resources/application-secrets.yml
62- echo "spring.cloud.aws.stack : false" >> src/main/resources/application-secrets.yml
62+ echo "spring.cloud.aws.stack.auto : false" >> src/main/resources/application-secrets.yml
63+
6364 # 6. application-secrets-server.yml 생성
6465 - name : Generate application-secrets-server.yml
6566 run : |
8889 echo "No test results found."
8990 fi
9091
92+ # 8-1. S3 자격 증명 제거 (빌드 전에만)
93+ - name : Remove only S3 credentials before building
94+ run : |
95+ CONFIG_FILE="src/main/resources/application-secrets.yml"
96+ sed -i '/spring.cloud.aws.credentials.access-key/d' $CONFIG_FILE
97+ sed -i '/spring.cloud.aws.credentials.secret-key/d' $CONFIG_FILE
98+ sed -i '/spring.cloud.aws.region.static/d' $CONFIG_FILE
99+ sed -i '/spring.cloud.aws.stack.auto/d' $CONFIG_FILE
100+
91101 # 9. Gradle 빌드 실행 (테스트 성공 시)
92102 - name : Build with Gradle
93103 run : ./gradlew build
You can’t perform that action at this time.
0 commit comments