diff --git a/.github/workflows/merge-hotfix.yml b/.github/workflows/merge-hotfix.yml new file mode 100644 index 000000000..9b0370fd4 --- /dev/null +++ b/.github/workflows/merge-hotfix.yml @@ -0,0 +1,45 @@ +# Deploys hotfixes to the test environment +name: Merge-Hotfix + +on: + push: + branches: [hotfix] + paths-ignore: + - "*.md" + - ".github/**" + - ".github/graphics/**" + - "!.github/workflows/**" + workflow_dispatch: + inputs: + pr_no: + description: "PR-numbered container set to deploy" + type: number + required: true + +concurrency: + # Do not interrupt previous workflows + group: ${{ github.workflow }} + cancel-in-progress: false + +jobs: + vars: + name: Set Variables + outputs: + pr: ${{ steps.pr.outputs.pr }} + runs-on: ubuntu-22.04 + timeout-minutes: 1 + steps: + # Get PR number for squash merges to main + - name: PR Number + id: pr + uses: bcgov-nr/action-get-pr@v0.0.1 + + # https://github.com/bcgov/quickstart-openshift-helpers + deploy-hotfix: + name: Deploy (hotfix) + uses: bcgov/quickstart-openshift-helpers/.github/workflows/.deployer.yml@v0.5.0 + secrets: + oc_namespace: ${{ secrets.OC_NAMESPACE }} + oc_token: ${{ secrets.OC_TOKEN }} + with: + environment: hotfix diff --git a/backend/src/main.ts b/backend/src/main.ts index e72cf0cdb..1a4fd1193 100644 --- a/backend/src/main.ts +++ b/backend/src/main.ts @@ -20,7 +20,7 @@ async function bootstrap() { const config = new DocumentBuilder() .setTitle("Compliance and Enforcement - Complaint Management API") .setDescription("The Complicance and Enforcement - Complaint Management API") - .setVersion("1.0") + .setVersion("1.0.0") .addTag("Compliance and Enforcement - Complaint Management") .build();