Skip to content

Commit

Permalink
Removed configmap update from deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
cditcher committed Dec 2, 2024
1 parent 9fdcda1 commit 3cb1393
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions .github/workflows/build-n-deploy-frontend-to-ocp-dev-vue3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -159,19 +159,11 @@ jobs:
|| true && echo "No rollout in progress"
# Process template
oc process -f tools/openshift/frontend-dc.yaml -p REPO_NAME=educ-grad-admin \
-p HOST_ROUTE=educ-grad-admin-${{secrets.GRAD_NAMESPACE_NO_ENV}}-dev.apps.silver.devops.gov.bc.ca -p NAMESPACE=${{ env.OPENSHIFT_NAMESPACE }} \
oc process -f tools/openshift/frontend-dc.yaml -p REPO_NAME=${{ env.REPO_NAME }} \
-p HOST_ROUTE=${{ env.HOST_ROUTE }} -p NAMESPACE=${{ env.OPENSHIFT_NAMESPACE }} \
-p APP_NAME=educ-grad-admin -p TAG=latest -p MIN_REPLICAS=2 -p MAX_REPLICAS=3 -p MIN_CPU=50m -p MAX_CPU=100m \
-p BASE_URL=${{ env.TARGET_ENV }}.grad.gov.bc.ca -p ENVIRONMENT=${{ env.TARGET_ENV }} -p CERTIFICATE="${{ secrets.CERTIFICATE }}" -p CA_CERT="${{ secrets.CA_CERT }}" -p PRIVATE_KEY="${{ secrets.PRIVATE_KEY }}" \
-p MIN_MEM=200Mi -p MAX_MEM=250Mi | oc apply -n ${{secrets.GRAD_NAMESPACE_NO_ENV}}-dev -f -
# UPDATE Configmaps
curl -s https://raw.githubusercontent.com/bcgov/${{ env.REPO_NAME }}/${{ env.BRANCH }}/tools/config/update-configmap-frontend.sh \
| bash /dev/stdin \
dev \
${{ env.REPO_NAME }} \
${{ env.GRAD_NAMESPACE }} \
${{ env.HOST_ROUTE }}
# Start rollout (if necessary) and follow it
oc rollout restart deployment/${{ env.IMAGE_NAME }}
Expand Down

0 comments on commit 3cb1393

Please sign in to comment.