Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions .github/workflows/test-server-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ jobs:
echo "spring.cloud.aws.credentials.access-key: ${{ secrets.AWS_ACCESS_KEY_ID }}" >> src/main/resources/application-secrets.yml
echo "spring.cloud.aws.credentials.secret-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}" >> src/main/resources/application-secrets.yml
echo "spring.cloud.aws.s3.bucket: ${{ secrets.AWS_S3_BUCKET_NAME }}" >> src/main/resources/application-secrets.yml
echo "spring.cloud.aws.stack : false" >> src/main/resources/application-secrets.yml
echo "spring.cloud.aws.stack.auto: false" >> src/main/resources/application-secrets.yml

# 6. application-secrets-server.yml 생성
- name: Generate application-secrets-server.yml
run: |
Expand Down Expand Up @@ -88,9 +89,18 @@ jobs:
echo "No test results found."
fi

# 8-1. S3 자격 증명 제거 (빌드 전에만)
- name: Remove only S3 credentials before building
run: |
CONFIG_FILE="src/main/resources/application-secrets.yml"
sed -i '/spring.cloud.aws.credentials.access-key/d' $CONFIG_FILE
sed -i '/spring.cloud.aws.credentials.secret-key/d' $CONFIG_FILE
sed -i '/spring.cloud.aws.region.static/d' $CONFIG_FILE
sed -i '/spring.cloud.aws.stack.auto/d' $CONFIG_FILE

# 9. Gradle 빌드 실행 (테스트 성공 시)
- name: Build with Gradle
run: ./gradlew build
run: ./gradlew build -x test

# 10. GHCR 로그인
- name: Log in to GHCR
Expand Down