Skip to content

Commit 2f4d636

Browse files
authored
Push github key in pwa deployment (#391)
1 parent 39bd301 commit 2f4d636

File tree

4 files changed

+11
-7
lines changed

4 files changed

+11
-7
lines changed

.github/workflows/cd.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,7 @@ jobs:
4747
secrets:
4848
gke-credentials: ${{ secrets.GKE_SA_KEY }}
4949
gke-project: ${{ secrets.GKE_PROJECT }}
50-
next-public-event-brite-id: ${{ secrets.NEXT_PUBLIC_EVENT_BRITE_ID }}
51-
next-public-mapbox-key: ${{ secrets.NEXT_PUBLIC_MAPBOX_KEY }}
50+
gh-key: ${{ secrets.GH_KEY }}
5251
# cloudflare-api-token: ${{ secrets.CF_API_TOKEN }}
5352
# cloudflare-zone-id: ${{ secrets.CF_ZONE_ID }}
5453

.github/workflows/deploy.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,8 @@ on:
4444
gke-project:
4545
description: Google Kubernetes Engine Project
4646
required: true
47-
next-public-event-brite-id:
48-
description: Next Public EventBrite Id
49-
required: true
50-
next-public-mapbox-key:
51-
description: Next Public Mapbox Key
47+
gh-key:
48+
description: Github authentication key
5249
required: true
5350
# cloudflare-api-token:
5451
# description: Cloudflare API Token
@@ -138,6 +135,7 @@ jobs:
138135
--set=php.corsAllowOrigin="^$(echo "${{ join(fromJSON(inputs.cors), '|') }}" | sed 's/\./\\./g')$" \
139136
--set=php.host=${{ inputs.url }} \
140137
--set=next.rootUrl=${{ inputs.url }} \
138+
--set=github.key=${{ secrets.gh-key }} \
141139
--set=ressources.requests.cpu=250m \
142140
--set=ressources.requests.memory=256Mi \
143141
--set=ressources.limits.memory=700Mi \
@@ -167,6 +165,7 @@ jobs:
167165
--set=pwa.image.tag=${{ inputs.docker-images-version }} \
168166
--set=pwa.image.pullPolicy=Always \
169167
--set=php.corsAllowOrigin="^$(echo "${{ join(fromJSON(inputs.cors), '|') }}" | sed 's/\./\\./g')$" \
168+
--set=github.key=${{ secrets.gh-key }} \
170169
--set=next.rootUrl=${{ inputs.url }} \
171170
--set=ressources.requests.cpu=250m \
172171
--set=ressources.requests.memory=256Mi \

helm/api-platform/templates/pwa-deployment.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ spec:
4141
configMapKeyRef:
4242
name: {{ include "api-platform.fullname" . }}
4343
key: next-root-url
44+
- name: GITHUB_KEY
45+
valueFrom:
46+
secretKeyRef:
47+
name: {{ include "api-platform.fullname" . }}
48+
key: github-key
4449
ports:
4550
- name: http
4651
containerPort: 3000

helm/api-platform/templates/secrets.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,5 @@ stringData:
1313
{{- end }}
1414
php-app-secret: {{ .Values.php.appSecret | default (randAlphaNum 40) | quote }}
1515
mercure-jwt-secret: {{ .Values.mercure.jwtSecret | default (randAlphaNum 40) | quote }}
16+
github-key: {{ .Values.github.key | quote }}
1617

0 commit comments

Comments
 (0)