Skip to content

Commit 081ccb4

Browse files
Update README.md with steps to connect to GCP
1 parent 47c1dbc commit 081ccb4

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

README.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Please note, time returned is in UTC. If running locally, will default to PDT, t
3737
## 🧠 What This Shows
3838
- Real-world **CI/CD pipeline** for a containerized Go app.
3939
- Hands-on use of **GitHub Actions**, **Docker**, and **Google Cloud**.
40-
- Clean, reproducible workflow for recruiters or hiring managers to verify.
40+
- Clean, reproducible workflow anyone can perform.
4141

4242
---
4343

@@ -73,10 +73,20 @@ Verify output:
7373

7474
Hello, the date is 10/11/2025, and the time is 07:45 PM.
7575

76-
### 3️⃣ Authenticate with Google Cloud
76+
### 3️⃣ Authenticate with Google Cloud, create the artifact repo serviceaccount, attach the artifact registry IAM policy binding to the service account, create the API key, then connect your GitHub repo to your GCP project
7777

7878
```gcloud auth configure-docker```
7979

80+
```gcloud iam service-accounts create github-actions-sa \ --display-name="GitHub Actions Service Account"```
81+
82+
```gcloud projects add-iam-policy-binding <your-project> --member="serviceAccount:github-actions-sa@<your-project>.iam.gserviceaccount.com" --role="roles/artifactregistry.writer"```
83+
84+
```gcloud iam service-accounts keys create key.json \ --iam-account=github-actions-sa@<your-project>.iam.gserviceaccount.com```
85+
86+
```cat key.json```
87+
88+
GitHub repo -> Settings -> Secrets and Variables -> New repository secret -> paste the ENTIRE JSON key file from the previous step and save
89+
8090
### 4️⃣ Push image to Artifact Registry
8191

8292
```docker tag gotime:latest us-west1-docker.pkg.dev/<your-project>/<repo-name>/gotime:latest```

0 commit comments

Comments
 (0)