Skip to content

Commit 2f7f8d5

Browse files
committed
configure prod for new provider
1 parent cfdc6d0 commit 2f7f8d5

6 files changed

Lines changed: 17 additions & 60 deletions

File tree

.github/workflows/main.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,14 @@ jobs:
7070
run: |
7171
echo -e "$CONTENTS" > src/app-config.d/github-app-credentials.yaml
7272
73+
- name: Write Google Admin API creds
74+
id: google-admin-creds
75+
shell: bash
76+
env:
77+
CONTENTS: ${{ secrets.CATALOG_GOOGLE_JWT_KEYS }}
78+
run: |
79+
echo -e "$CONTENTS" > src/app-config.d/google-jwt.keys.json
80+
7381
- name: Compile Typescript
7482
id: compile
7583
shell: bash

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,3 +76,6 @@ codepipeline-config-*.yaml
7676

7777
# AWS SAM
7878
.aws-sam/
79+
80+
# Backstage credentials
81+
src/app-config.d/credentials

src/app-config.d/catalogs/groups.yaml

Lines changed: 0 additions & 24 deletions
This file was deleted.

src/app-config.d/catalogs/users.yaml

Lines changed: 0 additions & 22 deletions
This file was deleted.

src/app-config.d/credentials/.keep

Whitespace-only changes.

src/app-config.production.yaml

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -52,19 +52,19 @@ integrations:
5252
github:
5353
- host: github.com
5454
apps:
55-
- $include: /app/app-config.d/github-app-credentials.yaml
55+
- $include: /app/app-config.d/credentials/github-app-credentials.yaml
5656

5757
catalog:
5858
providers:
5959
google:
60-
baseUrl: https://google.com
6160
auth:
62-
clientId: ${CATALOG_GOOGLE_CLIENT_ID}
63-
clientSecret: ${CATALOG_GOOGLE_CLIENT_SECRET}
61+
adminAccountEmail: tom@serverlessops.io
62+
clientCredentials:
63+
$include: /app/app-config.d/credentials/google-jwt.keys.json
6464
schedule:
6565
initialDelay: { seconds: 5 }
66-
frequency: { minutes: 15 }
67-
timeout: { seconds: 60 }
66+
frequency: { minutes: 1 }
67+
timeout: { seconds: 30 }
6868
serverlessops-catalog:
6969
baseUrl: ${SERVERLESSOPS_CATALOG_API_URL}
7070
namespace: default
@@ -87,14 +87,6 @@ catalog:
8787
# See https://backstage.io/docs/features/software-catalog/#adding-components-to-the-catalog for more details
8888
# on how to get entities into the catalog.
8989
locations:
90-
- type: file
91-
target: /app/app-config.d/catalogs/users.yaml
92-
rules:
93-
- allow: [User]
94-
- type: file
95-
target: /app/app-config.d/catalogs/groups.yaml
96-
rules:
97-
- allow: [Groups]
9890
- type: file
9991
target: /app/app-config.d/scaffolders/domain-add.yaml
10092
rules:

0 commit comments

Comments
 (0)