fix(FSADT1-2114): Upgraded Netty to fix HTTP query parsing issue (#468) #185
This file contains hidden or 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
| name: Merge | |
| on: | |
| push: | |
| branches: [main] | |
| paths-ignore: | |
| - "*.md" | |
| - ".github/**" | |
| - ".github/graphics/**" | |
| - ".github/ISSUE_TEMPLATE/**" | |
| - "!.github/workflows/**" | |
| env: | |
| DOMAIN: apps.silver.devops.gov.bc.ca | |
| NS: nr-d2723f | |
| concurrency: | |
| group: ${{ github.workflow }} | |
| cancel-in-progress: true | |
| jobs: | |
| init: | |
| name: Initialize | |
| outputs: | |
| pr: ${{ steps.pr.outputs.pr }} | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| # Get PR number for squash merges to main | |
| - id: pr | |
| uses: bcgov/action-get-pr@35514fa1d4765547da319e967b509363598e8b46 # v0.1.0 | |
| deploy-test: | |
| name: TEST Deployment | |
| needs: [init] | |
| runs-on: ubuntu-24.04 | |
| outputs: | |
| tag: ${{ steps.changelog.outputs.tag }} | |
| permissions: | |
| contents: write | |
| discussions: write | |
| environment: | |
| name: test | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Deploys | |
| uses: bcgov/action-deployer-openshift@565e315dfddb8aee08fcfd885a27407dde9a2775 # v4.0.1 | |
| with: | |
| file: openshift.deploy.yml | |
| oc_namespace: ${{ secrets.OC_NAMESPACE }} | |
| oc_server: ${{ secrets.OC_SERVER }} | |
| oc_token: ${{ secrets.OC_TOKEN }} | |
| overwrite: true | |
| oc_version: "4.13" | |
| parameters: -p ORACLEDB_USER=${{ secrets.ORACLEDB_USERNAME }} | |
| -p ORACLEDB_PASSWORD=${{ secrets.ORACLEDB_PASSWORD }} | |
| -p ORACLEDB_DATABASE=${{ secrets.ORACLEDB_DATABASE }} | |
| -p ORACLEDB_HOST=${{ secrets.ORACLEDB_HOST }} | |
| -p ORACLEDB_SERVICENAME=${{ secrets.ORACLEDB_SERVICENAME }} | |
| -p ORACLEDB_SECRET=${{ secrets.ORACLEDB_SECRET }} | |
| -p ZONE=test | |
| -p TAG=${{ needs.init.outputs.pr }} | |
| - name: Publish API | |
| uses: bcgov/action-gwa-publish@f11f9b506e45928741eebec9141867de87947a90 # v0.1.0 | |
| with: | |
| namespace: ${{ env.NS }} | |
| client_id: ${{ secrets.GWA_ACCT_ID }} | |
| client_secret: ${{ secrets.GWA_ACCT_SECRET }} | |
| file: .github/gwa/service-test.yaml | |
| - name: Postman Smoke Test on API Gateway | |
| uses: matt-ball/newman-action@master | |
| with: | |
| collection: postman/FCA.postman_collection.json | |
| envVar: '[{"key":"URL_FCA","value":"https://${{ github.event.repository.name }}-test.api.gov.bc.ca"}]' | |
| reporters: '["cli"]' | |
| folder: '["general"]' | |
| deploy-prod: | |
| name: PROD Deployment | |
| needs: [deploy-test, init] | |
| runs-on: ubuntu-24.04 | |
| environment: | |
| name: prod | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Deploys | |
| uses: bcgov/action-deployer-openshift@565e315dfddb8aee08fcfd885a27407dde9a2775 # v4.0.1 | |
| with: | |
| file: openshift.deploy.yml | |
| oc_namespace: ${{ secrets.OC_NAMESPACE }} | |
| oc_server: ${{ secrets.OC_SERVER }} | |
| oc_token: ${{ secrets.OC_TOKEN }} | |
| overwrite: true | |
| oc_version: "4.13" | |
| parameters: -p ORACLEDB_USER=${{ secrets.ORACLEDB_USERNAME }} | |
| -p ORACLEDB_PASSWORD=${{ secrets.ORACLEDB_PASSWORD }} | |
| -p ORACLEDB_DATABASE=${{ secrets.ORACLEDB_DATABASE }} | |
| -p ORACLEDB_HOST=${{ secrets.ORACLEDB_HOST }} | |
| -p ORACLEDB_SERVICENAME=${{ secrets.ORACLEDB_SERVICENAME }} | |
| -p ORACLEDB_SECRET=${{ secrets.ORACLEDB_SECRET }} | |
| -p ZONE=prod | |
| -p TAG=${{ needs.init.outputs.pr }} | |
| - name: Publish API | |
| uses: bcgov/action-gwa-publish@f11f9b506e45928741eebec9141867de87947a90 # v0.1.0 | |
| with: | |
| namespace: ${{ env.NS }} | |
| client_id: ${{ secrets.GWA_ACCT_ID }} | |
| client_secret: ${{ secrets.GWA_ACCT_SECRET }} | |
| file: .github/gwa/service-prod.yaml | |
| - name: Postman Smoke Test on API Gateway | |
| uses: matt-ball/newman-action@master | |
| with: | |
| collection: postman/FCA.postman_collection.json | |
| envVar: '[{"key":"URL_FCA","value":"https://${{ github.event.repository.name }}-prod.api.gov.bc.ca"}]' | |
| reporters: '["cli"]' | |
| folder: '["general"]' |