Skip to content

Commit

Permalink
Added client id to deployments
Browse files Browse the repository at this point in the history
  • Loading branch information
cditcher committed Dec 31, 2024
1 parent 18ba304 commit 95080ff
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ env:
IMAGE_REGISTRY_PASSWORD: ${{ github.token }}

SPRING_BOOT_IMAGE_NAME: educ-grad-business-api
BUSINESS_CLIENT_ID: ${{ secrets.BUSINESS_CLIENT_ID }}

REPO_NAME: "educ-grad-business-api"
APP_DOMAIN: ${{ vars.APP_DOMAIN }}
Expand Down Expand Up @@ -136,7 +137,8 @@ jobs:
${{ env.COMMON_NAMESPACE }} \
${{ env.BUSINESS_NAMESPACE }} \
${{ secrets.SPLUNK_TOKEN }} \
${{ vars.APP_LOG_LEVEL }}
${{ vars.APP_LOG_LEVEL }} \
${{ vars.BUSINESS_CLIENT_ID }}
# OVERRIDE Configmaps
curl -s https://raw.githubusercontent.com/bcgov/${{ env.REPO_NAME }}/${{ github.event.inputs.choice }}/tools/config/override-configmap-dev.sh \
Expand All @@ -147,7 +149,8 @@ jobs:
${{ env.COMMON_NAMESPACE }} \
${{ env.BUSINESS_NAMESPACE }} \
${{ secrets.SPLUNK_TOKEN }} \
${{ vars.APP_LOG_LEVEL }}
${{ vars.APP_LOG_LEVEL }}\
${{ vars.BUSINESS_CLIENT_ID }}
# Start rollout (if necessary) and follow it
oc rollout restart deployment/${{ env.SPRING_BOOT_IMAGE_NAME }}
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/build.from.main.branch.deploy.to.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ env:
IMAGE_REGISTRY_PASSWORD: ${{ github.token }}

SPRING_BOOT_IMAGE_NAME: educ-grad-business-api
BUSINESS_CLIENT_ID: ${{ secrets.BUSINESS_CLIENT_ID }}

REPO_NAME: "educ-grad-business-api"
APP_DOMAIN: ${{ vars.APP_DOMAIN }}
Expand Down Expand Up @@ -123,7 +124,8 @@ jobs:
${{ env.COMMON_NAMESPACE }} \
${{ env.BUSINESS_NAMESPACE }} \
${{ secrets.SPLUNK_TOKEN }} \
${{ vars.APP_LOG_LEVEL }}
${{ vars.APP_LOG_LEVEL }} \
${{ vars.BUSINESS_CLIENT_ID }}
# OVERRIDE Configmaps
curl -s https://raw.githubusercontent.com/bcgov/${{ env.REPO_NAME }}/${{ env.BRANCH }}/tools/config/override-configmap-dev.sh \
Expand All @@ -134,7 +136,8 @@ jobs:
${{ env.COMMON_NAMESPACE }} \
${{ env.BUSINESS_NAMESPACE }} \
${{ secrets.SPLUNK_TOKEN }} \
${{ vars.APP_LOG_LEVEL }}
${{ vars.APP_LOG_LEVEL }}\
${{ vars.BUSINESS_CLIENT_ID }}
# Start rollout (if necessary) and follow it
oc rollout restart deployment/${{ env.SPRING_BOOT_IMAGE_NAME }}
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/build.from.release.branch.deploy.to.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ env:
IMAGE_REGISTRY_PASSWORD: ${{ github.token }}

SPRING_BOOT_IMAGE_NAME: educ-grad-business-api
BUSINESS_CLIENT_ID: ${{ secrets.BUSINESS_CLIENT_ID }}

REPO_NAME: "educ-grad-business-api"
APP_DOMAIN: ${{ vars.APP_DOMAIN }}
Expand Down Expand Up @@ -132,7 +133,8 @@ jobs:
${{ env.COMMON_NAMESPACE }} \
${{ env.BUSINESS_NAMESPACE }} \
${{ secrets.SPLUNK_TOKEN }} \
${{ vars.APP_LOG_LEVEL }}
${{ vars.APP_LOG_LEVEL }} \
${{ vars.BUSINESS_CLIENT_ID }}
# OVERRIDE Configmaps
curl -s https://raw.githubusercontent.com/bcgov/${{ env.REPO_NAME }}/${{ env.BRANCH }}/tools/config/override-configmap-dev.sh \
Expand All @@ -143,7 +145,8 @@ jobs:
${{ env.COMMON_NAMESPACE }} \
${{ env.BUSINESS_NAMESPACE }} \
${{ secrets.SPLUNK_TOKEN }} \
${{ vars.APP_LOG_LEVEL }}
${{ vars.APP_LOG_LEVEL }}\
${{ vars.BUSINESS_CLIENT_ID }}
# Start rollout (if necessary) and follow it
oc rollout restart deployment/${{ env.SPRING_BOOT_IMAGE_NAME }}
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/deploy_prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ env:
BUSINESS_NAMESPACE: ${{ vars.GRAD_BUSINESS_NAMESPACE }}

SPRING_BOOT_IMAGE_NAME: educ-grad-business-api
BUSINESS_CLIENT_ID: ${{ secrets.BUSINESS_CLIENT_ID }}

REPO_NAME: "educ-grad-business-api"
APP_DOMAIN: ${{ vars.APP_DOMAIN }}
Expand Down Expand Up @@ -87,7 +88,8 @@ jobs:
${{ env.COMMON_NAMESPACE }} \
${{ env.BUSINESS_NAMESPACE }} \
${{ secrets.SPLUNK_TOKEN }} \
${{ vars.APP_LOG_LEVEL }}
${{ vars.APP_LOG_LEVEL }} \
${{ vars.BUSINESS_CLIENT_ID }}
# Start rollout (if necessary) and follow it
oc rollout restart deployment/${{ env.SPRING_BOOT_IMAGE_NAME }}
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/deploy_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ env:
BUSINESS_NAMESPACE: ${{ vars.GRAD_BUSINESS_NAMESPACE }}

SPRING_BOOT_IMAGE_NAME: educ-grad-business-api
BUSINESS_CLIENT_ID: ${{ secrets.BUSINESS_CLIENT_ID }}

REPO_NAME: "educ-grad-business-api"
APP_DOMAIN: ${{ vars.APP_DOMAIN }}
Expand Down Expand Up @@ -87,7 +88,8 @@ jobs:
${{ env.COMMON_NAMESPACE }} \
${{ env.BUSINESS_NAMESPACE }} \
${{ secrets.SPLUNK_TOKEN }} \
${{ vars.APP_LOG_LEVEL }}
${{ vars.APP_LOG_LEVEL }} \
${{ vars.BUSINESS_CLIENT_ID }}
# Start rollout (if necessary) and follow it
oc rollout restart deployment/${{ env.SPRING_BOOT_IMAGE_NAME }}
Expand Down

0 comments on commit 95080ff

Please sign in to comment.