Skip to content

Commit

Permalink
Remove _PROD suffix from env variables in prod workflow (#105)
Browse files Browse the repository at this point in the history
  • Loading branch information
yhtMinceraft1010X authored Oct 16, 2023
1 parent e7c41ee commit d476ea7
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ env:
ARTIFACT_REPOSITORY_NAME: codeparty-prod-images
GKE_CLUSTER: codeparty-g11-prod # Add your cluster name here.
GKE_REGION: asia-southeast1 # Add your cluster zone here.
FIREBASE_SERVICE_ACCOUNT_PROD: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_PROD }}
PRISMA_DATABASE_URL_PROD: ${{ secrets.PRISMA_DATABASE_URL_PROD }}
MONGO_ATLAS_URL_PROD: ${{ secrets.MONGO_ATLAS_URL_PROD }}
FRONTEND_FIREBASE_CONFIG_PROD: ${{ secrets.FRONTEND_FIREBASE_CONFIG_PROD }}
FIREBASE_SERVICE_ACCOUNT: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_PROD }}
PRISMA_DATABASE_URL: ${{ secrets.PRISMA_DATABASE_URL_PROD }}
MONGO_ATLAS_URL: ${{ secrets.MONGO_ATLAS_URL_PROD }}
FRONTEND_FIREBASE_CONFIG: ${{ secrets.FRONTEND_FIREBASE_CONFIG_PROD }}

jobs:
setup-build-publish-deploy:
Expand Down Expand Up @@ -74,13 +74,13 @@ jobs:
- name: Set kubectl secrets
run: |-
kubectl create secret generic firebase-service-account \
--from-literal=firebase-service-account=$FIREBASE_SERVICE_ACCOUNT_PROD
--from-literal=firebase-service-account=$FIREBASE_SERVICE_ACCOUNT
kubectl create secret generic prisma-database-url \
--from-literal=prisma-database-url=$PRISMA_DATABASE_URL_PROD
--from-literal=prisma-database-url=$PRISMA_DATABASE_URL
kubectl create secret generic mongo-atlas-url \
--from-literal=mongo-atlas-url=$MONGO_ATLAS_URL_PROD
--from-literal=mongo-atlas-url=$MONGO_ATLAS_URL
kubectl create secret generic frontend-firebase-config \
--from-literal=frontend-firebase-config=$FRONTEND_FIREBASE_CONFIG_PROD
--from-literal=frontend-firebase-config=$FRONTEND_FIREBASE_CONFIG
# Deploy the Docker images to the GKE cluster
- name: Deploy production application
Expand Down

0 comments on commit d476ea7

Please sign in to comment.