-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tracking pull request to merge release-1.60.0 to master (#2190)
* initial 1.60.0 * update pr number * Update user-story-.md (#2198) * Task: Reassessment Credit Modifications #2195 (#2214) * Allowing all credit fields to me modified in reassessments * Cleanup * More cleanup * feat: removes idir names from sales submission and vehicle comments (#2217) * fix: 2215 - credit balances and recent reassessments (#2230) * for emily to look at - suggested solution for rounding issues (#2234) Co-authored-by: tim738745 <tim.chen@gov.bc.ca> * chore: updates login instructions (removes references to creation_request table) (#2238) * remove test data load for pr build * update pr build * increase resource for pr build * only setup db for pr build * update pr build * New pipeline (#2229) * add test ci (#2242) * fix: removes unecessary data from transfer -- build-on-dev (#2241) * fix: removes unecessary data from transfer * fix: new user serializer passes only basic user info to frontend -get history modified so that approved and disapproved statuses created by government are excluded so that communications/status changes within government are not shown in network tab * removes id from user basic serializer * emergency release 1.59.1 * update for emergency release 1.59.1 * emergency release stuff (#2260) Co-authored-by: Kuan Fan <31664961+kuanfandevops@users.noreply.github.com> * change version number to 1.59.1 (#2261) * change package json number to 1.60.0 (#2262) * Emergency Release 1.59.1 (#2258) (#2263) * add emergency release-1.59.1 * add pull_request events * Update package.json * Transfer fix (#2244) * fix: removes unecessary data from transfer * fix: new user serializer passes only basic user info to frontend -get history modified so that approved and disapproved statuses created by government are excluded so that communications/status changes within government are not shown in network tab * removes id from user basic serializer * more fixes * small change + tests * Update version to be 1.59.1 in package.json --------- * Update emergency-release-build-1.59.1.yaml --------- Co-authored-by: Kuan Fan <31664961+kuanfandevops@users.noreply.github.com> Co-authored-by: emi-hi <emily.hillier@gmail.com> * revert post emergency release commits (#2264) * update approval list --------- Co-authored-by: Samuel Chukwuma Arawu <75506215+ArawuSamuel1@users.noreply.github.com> Co-authored-by: JulianForeman <71847719+JulianForeman@users.noreply.github.com> Co-authored-by: Emily <44536222+emi-hi@users.noreply.github.com> Co-authored-by: tim738745 <98717409+tim738745@users.noreply.github.com> Co-authored-by: tim738745 <tim.chen@gov.bc.ca> Co-authored-by: emi-hi <emily.hillier@gmail.com>
- Loading branch information
1 parent
3543d4a
commit c46d85a
Showing
30 changed files
with
708 additions
and
197 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,123 @@ | ||
## For each release, the value of workflow name, branches and VERSION need to be adjusted accordingly | ||
|
||
name: Zeva new-pipeline-1.60.0 Dev CI | ||
|
||
on: | ||
# push: | ||
# branches: [ new-pipeline-1.60.0 ] | ||
# paths: | ||
# - frontend/** | ||
# - backend/** | ||
workflow_dispatch: | ||
|
||
env: | ||
VERSION: 1.60.0 | ||
GIT_URL: https://github.com/bcgov/zeva.git | ||
TOOLS_NAMESPACE: ${{ secrets.OPENSHIFT_NAMESPACE_PLATE }}-tools | ||
DEV_NAMESPACE: ${{ secrets.OPENSHIFT_NAMESPACE_PLATE }}-dev | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
set-pre-release: | ||
name: Calculate pre-release number | ||
runs-on: ubuntu-latest | ||
|
||
outputs: | ||
output1: ${{ steps.set-pre-release.outputs.PRE_RELEASE }} | ||
|
||
steps: | ||
- id: set-pre-release | ||
run: echo "PRE_RELEASE=$(date +'%Y%m%d%H%M%S')" >> $GITHUB_OUTPUT | ||
|
||
build-backend: | ||
name: Build Zeva Backend | ||
runs-on: ubuntu-latest | ||
needs: set-pre-release | ||
timeout-minutes: 60 | ||
|
||
env: | ||
PRE_RELEASE: ${{ needs.set-pre-release.outputs.output1 }} | ||
|
||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v4.1.1 | ||
|
||
- name: Log in to Openshift | ||
uses: redhat-actions/oc-login@v1.3 | ||
with: | ||
openshift_server_url: ${{ secrets.OPENSHIFT_SERVER }} | ||
openshift_token: ${{ secrets.OPENSHIFT_TOKEN }} | ||
insecure_skip_tls_verify: true | ||
namespace: ${{ env.TOOLS_NAMESPACE }} | ||
|
||
- name: Build Zeva Backend | ||
run: | | ||
cd openshift/templates/backend | ||
oc process -f ./backend-bc-docker.yaml NAME=zeva SUFFIX=-${{ env.VERSION }}-${{ env.PRE_RELEASE }} VERSION=${{ env.VERSION }}-${{ env.PRE_RELEASE }} GIT_URL=${{ env.GIT_URL }} GIT_REF=new-pipeline-${{ env.VERSION }} | oc apply --wait=true -f - -n ${{ env.TOOLS_NAMESPACE }} | ||
sleep 5s | ||
oc -n ${{ env.TOOLS_NAMESPACE }} wait --for=condition=Complete --timeout=900s build/zeva-backend-${{ env.VERSION }}-${{ env.PRE_RELEASE }}-1 | ||
oc tag ${{ env.TOOLS_NAMESPACE }}/zeva-backend:${{ env.VERSION }}-${{ env.PRE_RELEASE }} ${{ env.DEV_NAMESPACE }}/zeva-backend:${{ env.VERSION }}-${{ env.PRE_RELEASE }} | ||
build-frontend: | ||
name: Build Zeva Frontend | ||
runs-on: ubuntu-latest | ||
needs: set-pre-release | ||
timeout-minutes: 60 | ||
|
||
env: | ||
PRE_RELEASE: ${{ needs.set-pre-release.outputs.output1 }} | ||
|
||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v4.1.1 | ||
|
||
- name: Log in to Openshift | ||
uses: redhat-actions/oc-login@v1.3 | ||
with: | ||
openshift_server_url: ${{ secrets.OPENSHIFT_SERVER }} | ||
openshift_token: ${{ secrets.OPENSHIFT_TOKEN }} | ||
insecure_skip_tls_verify: true | ||
namespace: ${{ env.TOOLS_NAMESPACE }} | ||
|
||
- name: Build ZEVA Frontend | ||
run: | | ||
cd openshift/templates/frontend | ||
oc process -f ./frontend-bc-docker.yaml NAME=zeva SUFFIX=-${{ env.VERSION }}-${{ env.PRE_RELEASE }} VERSION=${{ env.VERSION }}-${{ env.PRE_RELEASE }} GIT_URL=${{ env.GIT_URL }} GIT_REF=new-pipeline-${{ env.VERSION }} | oc apply --wait=true -f - -n ${{ env.TOOLS_NAMESPACE }} | ||
sleep 5s | ||
oc -n ${{ env.TOOLS_NAMESPACE }} wait --for=condition=Complete --timeout=900s build/zeva-frontend-${{ env.VERSION }}-${{ env.PRE_RELEASE }}-1 | ||
oc tag ${{ env.TOOLS_NAMESPACE }}/zeva-frontend:${{ env.VERSION }}-${{ env.PRE_RELEASE }} ${{ env.DEV_NAMESPACE }}/zeva-frontend:${{ env.VERSION }}-${{ env.PRE_RELEASE }} | ||
deploy: | ||
name: Deploy Zeva on Dev | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 60 | ||
needs: [set-pre-release, build-backend, build-frontend] | ||
|
||
env: | ||
PRE_RELEASE: ${{ needs.set-pre-release.outputs.output1 }} | ||
|
||
steps: | ||
- name: Checkout Manifest repository | ||
uses: actions/checkout@v4.1.1 | ||
with: | ||
repository: bcgov-c/tenant-gitops-e52f12 | ||
ref: main | ||
ssh-key: ${{ secrets.MANIFEST_REPO_DEPLOY_KEY }} | ||
|
||
- name: Update tags | ||
uses: mikefarah/yq@v4.40.5 | ||
with: | ||
cmd: | | ||
yq -i '.frontend.image.tag = "${{ env.VERSION }}-${{ env.PRE_RELEASE }}"' zeva/values-dev.yaml | ||
yq -i '.backend.image.tag = "${{ env.VERSION }}-${{ env.PRE_RELEASE }}"' zeva/values-dev.yaml | ||
- name: GitHub Commit & Push | ||
run: | | ||
git config --global user.email "actions@github.com" | ||
git config --global user.name "GitHub Actions" | ||
git add zeva/values-dev.yaml | ||
git commit -m "Update the image tag to ${{ env.VERSION }}-${{ env.PRE_RELEASE }} on Dev" | ||
git push |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.