Skip to content

Commit

Permalink
reverting changes made to test github actions deploy flow to be done …
Browse files Browse the repository at this point in the history
…via a PR.
  • Loading branch information
SoLetsDev committed Sep 18, 2023
1 parent 93bd4db commit 7aea787
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 285 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ jobs:
working-directory: api

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '14.x'
- run: npm ci
Expand Down
174 changes: 0 additions & 174 deletions .github/workflows/deploy-to.openshift-dev.yml

This file was deleted.

87 changes: 0 additions & 87 deletions tools/config/update-configmap.sh

This file was deleted.

11 changes: 6 additions & 5 deletions tools/jenkins/update-configmap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@ envValue=$1
APP_NAME=$2
PEN_NAMESPACE=$3
COMMON_NAMESPACE=$4
SPLUNK_TOKEN=$5
CDOGS_CLIENT_ID=$6
CDOGS_CLIENT_SECRET=$7
CDOGS_TOKEN_ENDPOINT=$8
CDOGS_BASE_URL=$9
APP_NAME_UPPER=${APP_NAME^^}

TZVALUE="America/Vancouver"
SOAM_KC_REALM_ID="master"
Expand Down Expand Up @@ -34,6 +30,11 @@ curl -sX POST "https://$SOAM_KC/auth/admin/realms/$SOAM_KC_REALM_ID/client-scope
###########################################################
#Setup for student-admin-flb-sc-config-map
###########################################################
CDOGS_CLIENT_ID=$(oc -n "$PEN_NAMESPACE-$envValue" -o json get configmaps "${APP_NAME}-${envValue}"-setup-config | sed -n "s/.*\"CDOGS_CLIENT_ID\": \"\(.*\)\",/\1/p")
CDOGS_CLIENT_SECRET=$(oc -n "$PEN_NAMESPACE-$envValue" -o json get configmaps "${APP_NAME}-${envValue}"-setup-config | sed -n "s/.*\"CDOGS_CLIENT_SECRET\": \"\(.*\)\",/\1/p")
CDOGS_TOKEN_ENDPOINT=$(oc -n "$PEN_NAMESPACE-$envValue" -o json get configmaps "${APP_NAME}-${envValue}"-setup-config | sed -n "s/.*\"CDOGS_TOKEN_ENDPOINT\": \"\(.*\)\",/\1/p")
CDOGS_BASE_URL=$(oc -n "$PEN_NAMESPACE-$envValue" -o json get configmaps "${APP_NAME}-${envValue}"-setup-config | sed -n "s/.*\"CDOGS_BASE_URL\": \"\(.*\)\",/\1/p")
SPLUNK_TOKEN=$(oc -n "$PEN_NAMESPACE-$envValue" -o json get configmaps "${APP_NAME}-${envValue}-setup-config" | sed -n "s/.*\"SPLUNK_TOKEN_${APP_NAME_UPPER}\": \"\(.*\)\"/\1/p")

SPLUNK_URL="gww.splunk.educ.gov.bc.ca"
FLB_CONFIG="[SERVICE]
Expand Down
Loading

0 comments on commit 7aea787

Please sign in to comment.