Skip to content

Commit

Permalink
chore(ci): vars (#184)
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekRoberts authored May 3, 2024
1 parent d6ee8f4 commit f5fe845
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/pr-open.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ jobs:
-p PROMOTE=${{ github.repository }}/${{ matrix.name }}:${{ github.event.number }}
-p VITE_QUESTIONS_API_KEY=${{ secrets.VITE_QUESTIONS_API_KEY }}
-p MIN_REPLICAS=1 -p MAX_REPLICAS=2 ${{ matrix.parameters }}
-p S3_BUCKETNAME=${{ secrets.S3_BUCKETNAME }}
-p S3_SECRETKEY=${{ secrets.S3_SECRETKEY }}
triggers: ${{ matrix.triggers }}
verification_path: ${{ matrix.verification_path }}

Expand Down
20 changes: 20 additions & 0 deletions backend/openshift.deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,18 @@ parameters:
value: "9c82d5fc-1d34-4a0c-97f2-c0c756791c34"
- name: VITE_QUESTIONS_API_KEY
description: Dummy param to satisfy workflow
- name: S3_ACCESSKEY
description: Access key for S3
value: nr-fsa-tst
- name: S3_ENDPOINT
description: Endpoint for S3
value: nrs.objectstore.gov.bc.ca
- name: S3_BUCKETNAME
description: Bucket name for S3
value: tivpth
- name: S3_SECRETKEY
description: Secret key for S3
required: true
objects:
- apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
Expand Down Expand Up @@ -138,6 +150,14 @@ objects:
value: ${CHES_CLIENT_SECRET}
- name: CHES_TOKEN_URL
value: ${CHES_TOKEN_URL}
- name: S3_ACCESSKEY
value: ${S3_ACCESSKEY}
- name: S3_BUCKETNAME
value: ${S3_BUCKETNAME}
- name: S3_ENDPOINT
value: ${S3_ENDPOINT}
- name: S3_SECRETKEY
value: ${S3_SECRETKEY}
ports:
- containerPort: 5000
protocol: TCP
Expand Down
10 changes: 7 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ x-common: &common
depends_on: ["backend"]
environment:
VITE_BACKEND_URL: http://backend:5000
VITE_ZONE: DEV
VITE_ZONE: PROD
healthcheck:
test: wget --no-verbose --spider http://localhost:3000
interval: 15s
Expand All @@ -18,8 +18,12 @@ services:
container_name: backend
entrypoint: sh -c "npm ci && npm run start"
environment:
CHES_CLIENT_ID : 09C5071A-ACE9B6FACF6
CHES_TOKEN_URL : https://test.loginproxy.gov.bc.ca/auth/realms/comsvcauth/protocol/openid-connect/token
CHES_CLIENT_ID: 09C5071A-ACE9B6FACF6
CHES_TOKEN_URL: https://test.loginproxy.gov.bc.ca/auth/realms/comsvcauth/protocol/openid-connect/token
S3_ACCESSKEY: nr-fsa-tst
S3_BUCKETNAME: tivpth
S3_ENDPOINT: nrs.objectstore.gov.bc.ca
S3_SECRETKEY: ${S3_SECRETKEY}
healthcheck:
test: timeout 10s bash -c 'true > /dev/tcp/127.0.0.1/5000'
interval: 15s
Expand Down
2 changes: 2 additions & 0 deletions frontend/openshift.deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ parameters:
- name: VITE_QUESTIONS_API_KEY
- name: VITE_ZONE
value: DEV
- name: S3_SECRETKEY
description: Dummy param to satisfy workflow
objects:
- apiVersion: v1
kind: ImageStream
Expand Down

0 comments on commit f5fe845

Please sign in to comment.