Skip to content

Commit

Permalink
feat: remove hard-coded branch
Browse files Browse the repository at this point in the history
  • Loading branch information
trev-dev committed Dec 10, 2024
1 parent 6908f77 commit 9c825a9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy-to.openshift-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ env:

APP_NAME: 'pen-request-api'
REPO_NAME: "educ-pen-request-api"
BRANCH: "master"
BRANCH: ${{ github.ref_name }}
APP_NAME_FULL: "pen-request-api-master"
NAMESPACE: ${{ secrets.COMMON_NAMESPACE_NO_ENV }}
COMMON_NAMESPACE: ${{ secrets.COMMON_NAMESPACE_NO_ENV }}
Expand Down Expand Up @@ -168,7 +168,7 @@ jobs:
-p MAX_MEM=${{ env.MAX_MEM }} \
| oc apply -f -
curl -s https://raw.githubusercontent.com/bcgov/${{ env.REPO_NAME }}/master/tools/config/update-configmap.sh \
curl -s https://raw.githubusercontent.com/bcgov/${{ env.REPO_NAME }}/${{ env.BRANCH }}/tools/config/update-configmap.sh \
| bash /dev/stdin dev \
${{ env.APP_NAME }} \
${{ env.NAMESPACE }} \
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-to.openshift-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ env:

APP_NAME: 'pen-request-api'
REPO_NAME: "educ-pen-request-api"
BRANCH: "master"
BRANCH: ${{ github.ref_name }}
NAMESPACE: ${{ secrets.COMMON_NAMESPACE_NO_ENV }}
COMMON_NAMESPACE: ${{ secrets.COMMON_NAMESPACE_NO_ENV }}
TAG: "latest"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy-to.openshift-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ env:

APP_NAME: 'pen-request-api'
REPO_NAME: "educ-pen-request-api"
BRANCH: "master"
BRANCH: "${{ github.ref_name }}"
APP_NAME_FULL: "pen-request-api-master"
NAMESPACE: ${{ secrets.COMMON_NAMESPACE_NO_ENV }}
COMMON_NAMESPACE: ${{ secrets.COMMON_NAMESPACE_NO_ENV }}
Expand Down Expand Up @@ -138,7 +138,7 @@ jobs:
${{ env.MAX_MEM }} \
k oc apply -f -
curl -s https://raw.githubusercontent.com/bcgov/${{ env.REPO_NAME }}/master/tools/config/update-configmap.sh \
curl -s https://raw.githubusercontent.com/bcgov/${{ env.REPO_NAME }}/${{ env.BRANCH }}/tools/config/update-configmap.sh \
| bash /dev/stdin test \
${{ env.APP_NAME }} \
${{ env.NAMESPACE }} \
Expand Down

0 comments on commit 9c825a9

Please sign in to comment.