Skip to content

Commit dc298c4

Browse files
committed
Fix
1 parent 91f69ed commit dc298c4

File tree

3 files changed

+24
-2
lines changed

3 files changed

+24
-2
lines changed

.github/workflows/cd-api.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,18 @@ jobs:
5656
if: steps.check.outputs.changed == 'true'
5757
run: yarn install
5858

59+
- name: Authenticate to GCP
60+
if: steps.check.outputs.changed == 'true'
61+
uses: google-github-actions/auth@v2
62+
with:
63+
credentials_json: ${{ secrets.GCP_SA_KEY }}
64+
65+
- name: Install gcloud CLI
66+
if: steps.check.outputs.changed == 'true'
67+
uses: google-github-actions/setup-gcloud@v2
68+
with:
69+
project_id: ${{ secrets.GCP_PROJECT_ID }}
70+
5971
- name: Run deploy script
6072
if: steps.check.outputs.changed == 'true'
6173
run: |

backend/api/README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,16 @@ gcloud compute backend-services update api-backend \
6565
--timeout=600s
6666
```
6767

68+
#### API Deploy CD
69+
70+
```shell
71+
gcloud iam service-accounts create ci-deployer \
72+
--display-name="CI Deployer"
73+
gcloud projects add-iam-policy-binding compass-130ba --member="serviceAccount:[email protected]" --role="roles/artifactregistry.writer"
74+
gcloud projects add-iam-policy-binding compass-130ba --member="serviceAccount:[email protected]" --role="roles/storage.objectAdmin"
75+
gcloud iam service-accounts keys create keyfile.json [email protected]
76+
```
77+
6878
Set up the saved search notifications job:
6979

7080
```bash

backend/api/metadata.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"git": {
3-
"revision": "af334c7",
4-
"commitDate": "2025-12-04 20:39:20 +0100",
3+
"revision": "91f69ed",
4+
"commitDate": "2025-12-04 20:51:09 +0100",
55
"author": "MartinBraquet"
66
}
77
}

0 commit comments

Comments
 (0)