Skip to content

Commit

Permalink
WIP quick fix to log into correct environment for backend deploy.
Browse files Browse the repository at this point in the history
  • Loading branch information
SoLetsDev committed Nov 14, 2023
1 parent 8d267ce commit 64d4ca4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy-to-openshift-backend-uat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ env:
OPENSHIFT_SERVER: ${{ secrets.OPENSHIFT_SERVER }}
OPENSHIFT_TOKEN: ${{ secrets.OPENSHIFT_TOKEN }}
# 🖊️ EDIT to set the kube context's namespace after login. Leave blank to use your user's default namespace.
OPENSHIFT_NAMESPACE: ${{ secrets.OFM_NAMESPACE_NO_ENV }}-uat
OPENSHIFT_NAMESPACE: ${{ secrets.OFM_NAMESPACE_NO_ENV }}-test
# We have multiple environments in each openshift namespace dev, test in DEV and uat, efx in TEST.
OPENSHIFT_ENVIRONMENT: 'uat'

Expand Down Expand Up @@ -109,7 +109,7 @@ jobs:
set -eux
# Login to OpenShift and select project
oc login --token=${{ env.OPENSHIFT_TOKEN }} --server=${{ env.OPENSHIFT_SERVER }}
oc project test
oc project ${{ env.OPENSHIFT_NAMESPACE }}
# Cancel any rollouts in progress
oc rollout cancel dc/${{ env.APP_NAME }}-${{ env.APP_NAME_BACKEND }}-${{ env.OPENSHIFT_ENVIRONMENT }} 2> /dev/null \
|| true && echo "No rollout in progress"
Expand Down

0 comments on commit 64d4ca4

Please sign in to comment.