mirror of
https://github.com/CompassConnections/Compass.git
synced 2025-12-23 22:18:43 -05:00
Fix
This commit is contained in:
12
.github/workflows/cd-api.yml
vendored
12
.github/workflows/cd-api.yml
vendored
@@ -56,6 +56,18 @@ jobs:
|
||||
if: steps.check.outputs.changed == 'true'
|
||||
run: yarn install
|
||||
|
||||
- name: Authenticate to GCP
|
||||
if: steps.check.outputs.changed == 'true'
|
||||
uses: google-github-actions/auth@v2
|
||||
with:
|
||||
credentials_json: ${{ secrets.GCP_SA_KEY }}
|
||||
|
||||
- name: Install gcloud CLI
|
||||
if: steps.check.outputs.changed == 'true'
|
||||
uses: google-github-actions/setup-gcloud@v2
|
||||
with:
|
||||
project_id: ${{ secrets.GCP_PROJECT_ID }}
|
||||
|
||||
- name: Run deploy script
|
||||
if: steps.check.outputs.changed == 'true'
|
||||
run: |
|
||||
|
||||
@@ -65,6 +65,16 @@ gcloud compute backend-services update api-backend \
|
||||
--timeout=600s
|
||||
```
|
||||
|
||||
#### API Deploy CD
|
||||
|
||||
```shell
|
||||
gcloud iam service-accounts create ci-deployer \
|
||||
--display-name="CI Deployer"
|
||||
gcloud projects add-iam-policy-binding compass-130ba --member="serviceAccount:ci-deployer@compass-130ba.iam.gserviceaccount.com" --role="roles/artifactregistry.writer"
|
||||
gcloud projects add-iam-policy-binding compass-130ba --member="serviceAccount:ci-deployer@compass-130ba.iam.gserviceaccount.com" --role="roles/storage.objectAdmin"
|
||||
gcloud iam service-accounts keys create keyfile.json --iam-account=ci-deployer@compass-130ba.iam.gserviceaccount.com
|
||||
```
|
||||
|
||||
Set up the saved search notifications job:
|
||||
|
||||
```bash
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"git": {
|
||||
"revision": "af334c7",
|
||||
"commitDate": "2025-12-04 20:39:20 +0100",
|
||||
"revision": "91f69ed",
|
||||
"commitDate": "2025-12-04 20:51:09 +0100",
|
||||
"author": "MartinBraquet"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user