File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
auth-service/src/main/java/com/devloger/authservice/controller Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 1111 deploy :
1212 runs-on : ubuntu-latest
1313 env :
14- USE_GKE_GCLOUD_AUTH_PLUGIN : " True" # ✅ 인증 플러그인 명시 활성화
14+ USE_GKE_GCLOUD_AUTH_PLUGIN : " True"
1515
1616 steps :
1717 - name : Checkout
2525 project_id : ${{ secrets.PROJECT_ID }}
2626 credentials : ${{ secrets.GCP_CREDENTIALS }}
2727
28+ - name : Activate service account explicitly
29+ run : |
30+ echo '${{ secrets.GCP_CREDENTIALS }}' > /tmp/key.json
31+ gcloud auth activate-service-account --key-file=/tmp/key.json
32+ gcloud config set project ${{ secrets.PROJECT_ID }}
33+ gcloud config set compute/region ${{ secrets.REGION }}
34+ gcloud config set compute/zone ${{ secrets.ZONE }}
35+
2836 - name : Authenticate Docker to Artifact Registry
2937 run : gcloud auth configure-docker asia-northeast3-docker.pkg.dev --quiet
3038
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ public class AuthController {
2222
2323 @ GetMapping ("/test" )
2424 public ResponseEntity <String > test () {
25- return ResponseEntity .ok ("Hello, World!" );
25+ return ResponseEntity .ok ("Hello, World!! " );
2626 }
2727
2828 @ PostMapping ("/signup" )
You can’t perform that action at this time.
0 commit comments