Skip to content

Commit

Permalink
[TEST] Echo test
Browse files Browse the repository at this point in the history
  • Loading branch information
DolphaGo committed Oct 23, 2024
1 parent c751927 commit 2ff7f44
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,3 @@ jobs:
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_S3_BUCKET_NAME: ${{ secrets.AWS_S3_BUCKET_NAME }}
run: ./gradlew :${{ matrix.module }}:jib
- name: Print Environment Variables
run: |
echo "GHCR_USERNAME: ${{ github.actor }}"
echo "AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}"
echo "AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}"
echo "AWS_S3_BUCKET_NAME: ${{ secrets.AWS_S3_BUCKET_NAME }}"
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package dev.dolphago.config

import jakarta.annotation.PostConstruct
import org.springframework.beans.factory.annotation.Value
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration
Expand All @@ -21,6 +22,12 @@ class S3Config {
@Value("\${cloud.aws.region.static}")
private var region: String? = null

@PostConstruct
fun init() {
println("############################## Access Key ID: $accessKey")
println("############################## Secret Access Key: $secretKey")
}

@Bean
fun amazonS3Client(): S3Client {
val credentials = AwsBasicCredentials.create(accessKey, secretKey)
Expand Down

0 comments on commit 2ff7f44

Please sign in to comment.