diff --git a/.github/actions/cloud-platform-deploy/action.yml b/.github/actions/cloud-platform-deploy/action.yml index 2331c071fd..4f50995087 100644 --- a/.github/actions/cloud-platform-deploy/action.yml +++ b/.github/actions/cloud-platform-deploy/action.yml @@ -6,7 +6,7 @@ inputs: description: The project to deploy required: true environment: - description: The environment to deploy to (dev/preprod/prod) + description: The environment name to deploy to (test/preprod/prod) required: true version: description: The version of the service to deploy diff --git a/.github/actions/render-project-template/action.yml b/.github/actions/render-project-template/action.yml index 7f6679513b..bb6864bed0 100644 --- a/.github/actions/render-project-template/action.yml +++ b/.github/actions/render-project-template/action.yml @@ -31,7 +31,6 @@ runs: sed -i '/add new projects here/i \ - '"'"'["${{ inputs.project_name }}"]'"'"'' .github/workflows/access.yml sed -i '/add new projects here/i \ - '"'"'["${{ inputs.project_name }}"]'"'"'' .github/workflows/deploy.yml sed -i '/add new projects here/i \ - '"'"'["${{ inputs.project_name }}"]'"'"'' .github/workflows/docs.yml - sed -i '/add new projects here/i \ - ${{ inputs.project_name }}' .github/workflows/suppress-trivy.yml sed -i '/add new projects here/i \ - ${{ inputs.project_name }}' .github/workflows/build.yml sed -i '/add new projects here/i \* [${{ steps.project_name.outputs.title_case }}](https://ministryofjustice.github.io/hmpps-probation-integration-services/tech-docs/projects/${{ inputs.project_name }})' doc/tech-docs/source/services.html.md.erb sed 's/$SERVICE_NAME/${{ inputs.project_name }}/g' templates/runConfiguration.xml > '.idea/runConfigurations/${{ steps.project_name.outputs.underscore }}.xml' diff --git a/.github/dependabot.yml b/.github/dependabot.yml index f182b8623d..5eba8d6645 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -25,3 +25,8 @@ updates: directory: "/projects/person-search-index-from-delius/container" schedule: interval: "daily" + + - package-ecosystem: "docker" + directory: "/projects/redrive-dead-letter-queues/container" + schedule: + interval: "monthly" # to reduce frequency of AWS CLI updates diff --git a/.github/workflows/access.yml b/.github/workflows/access.yml index e37f854eb7..1ed88d41ed 100644 --- a/.github/workflows/access.yml +++ b/.github/workflows/access.yml @@ -12,21 +12,33 @@ on: - 'All' - '["approved-premises-and-delius"]' - '["approved-premises-and-oasys"]' + - '["arns-and-delius"]' + - '["assessment-summary-and-delius"]' + - '["cas3-and-delius"]' - '["court-case-and-delius"]' - '["create-and-vary-a-licence-and-delius"]' - '["custody-key-dates-and-delius"]' - '["domain-events-and-delius"]' + - '["dps-and-delius"]' - '["effective-proposal-framework-and-delius"]' - '["external-api-and-delius"]' + - '["hdc-licences-and-delius"]' + - '["hmpps-auth-and-delius"]' - '["make-recall-decisions-and-delius"]' + - '["manage-offences-and-delius"]' - '["manage-pom-cases-and-delius"]' - '["offender-events-and-delius"]' + - '["opd-and-delius"]' - '["pathfinder-and-delius"]' - '["person-search-index-from-delius"]' - '["pre-sentence-reports-to-delius"]' - '["prison-case-notes-to-probation"]' - '["prison-custody-status-to-delius"]' + - '["prison-education-and-delius"]' + - '["prison-identifier-and-delius"]' + - '["prisoner-profile-and-delius"]' - '["refer-and-monitor-and-delius"]' + - '["resettlement-passport-and-delius"]' - '["risk-assessment-scores-to-delius"]' - '["sentence-plan-and-delius"]' - '["sentence-plan-and-oasys"]' @@ -34,18 +46,6 @@ on: - '["tier-to-delius"]' - '["unpaid-work-and-delius"]' - '["workforce-allocations-to-delius"]' - - '["manage-offences-and-delius"]' - - '["resettlement-passport-and-delius"]' - - '["prison-education-and-delius"]' - - '["opd-and-delius"]' - - '["hmpps-auth-and-delius"]' - - '["dps-and-delius"]' - - '["arns-and-delius"]' - - '["cas3-and-delius"]' - - '["hdc-licences-and-delius"]' - - '["prisoner-profile-and-delius"]' - - '["prison-identifier-and-delius"]' - - '["assessment-summary-and-delius"]' # ^ add new projects here # GitHub Actions doesn't support dynamic choices, we must add each project here to enable manual deployments # See https://github.com/community/community/discussions/11795 diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 900f5869c1..ca1c7e0438 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -36,20 +36,32 @@ jobs: project: - approved-premises-and-delius - approved-premises-and-oasys + - arns-and-delius + - assessment-summary-and-delius + - cas3-and-delius - court-case-and-delius - create-and-vary-a-licence-and-delius - custody-key-dates-and-delius - domain-events-and-delius + - dps-and-delius - effective-proposal-framework-and-delius - external-api-and-delius + - hdc-licences-and-delius + - hmpps-auth-and-delius - make-recall-decisions-and-delius + - manage-offences-and-delius - manage-pom-cases-and-delius - offender-events-and-delius + - opd-and-delius - pathfinder-and-delius - pre-sentence-reports-to-delius - prison-case-notes-to-probation - prison-custody-status-to-delius + - prison-education-and-delius + - prison-identifier-and-delius + - prisoner-profile-and-delius - refer-and-monitor-and-delius + - resettlement-passport-and-delius - risk-assessment-scores-to-delius - sentence-plan-and-delius - sentence-plan-and-oasys @@ -57,18 +69,6 @@ jobs: - tier-to-delius - unpaid-work-and-delius - workforce-allocations-to-delius - - manage-offences-and-delius - - resettlement-passport-and-delius - - prison-education-and-delius - - opd-and-delius - - hmpps-auth-and-delius - - dps-and-delius - - arns-and-delius - - cas3-and-delius - - hdc-licences-and-delius - - prisoner-profile-and-delius - - prison-identifier-and-delius - - assessment-summary-and-delius # ^ add new projects here # GitHub Actions doesn't support dynamic choices, we must add each project here to enable manual deployments # See https://github.com/community/community/discussions/11795 @@ -129,6 +129,7 @@ jobs: matrix: project: - person-search-index-from-delius + - redrive-dead-letter-queues steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index c1bf151fb4..c22f54a0a5 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -8,7 +8,7 @@ on: type: string required: true environment: - description: The name of the environment to deploy to + description: The environment name to deploy to (test/preprod/prod) type: string required: true version: @@ -25,21 +25,34 @@ on: options: - '["approved-premises-and-delius"]' - '["approved-premises-and-oasys"]' + - '["arns-and-delius"]' + - '["assessment-summary-and-delius"]' + - '["cas3-and-delius"]' - '["court-case-and-delius"]' - '["create-and-vary-a-licence-and-delius"]' - '["custody-key-dates-and-delius"]' - '["domain-events-and-delius"]' + - '["dps-and-delius"]' - '["effective-proposal-framework-and-delius"]' - '["external-api-and-delius"]' + - '["hdc-licences-and-delius"]' + - '["hmpps-auth-and-delius"]' - '["make-recall-decisions-and-delius"]' + - '["manage-offences-and-delius"]' - '["manage-pom-cases-and-delius"]' - '["offender-events-and-delius"]' + - '["opd-and-delius"]' - '["pathfinder-and-delius"]' - '["person-search-index-from-delius"]' - '["pre-sentence-reports-to-delius"]' - '["prison-case-notes-to-probation"]' - '["prison-custody-status-to-delius"]' + - '["prison-education-and-delius"]' + - '["prison-identifier-and-delius"]' + - '["prisoner-profile-and-delius"]' + - '["redrive-dead-letter-queue"]' - '["refer-and-monitor-and-delius"]' + - '["resettlement-passport-and-delius"]' - '["risk-assessment-scores-to-delius"]' - '["sentence-plan-and-delius"]' - '["sentence-plan-and-oasys"]' @@ -47,18 +60,6 @@ on: - '["tier-to-delius"]' - '["unpaid-work-and-delius"]' - '["workforce-allocations-to-delius"]' - - '["manage-offences-and-delius"]' - - '["resettlement-passport-and-delius"]' - - '["prison-education-and-delius"]' - - '["opd-and-delius"]' - - '["hmpps-auth-and-delius"]' - - '["dps-and-delius"]' - - '["arns-and-delius"]' - - '["cas3-and-delius"]' - - '["hdc-licences-and-delius"]' - - '["prisoner-profile-and-delius"]' - - '["prison-identifier-and-delius"]' - - '["assessment-summary-and-delius"]' # ^ add new projects here # GitHub Actions doesn't support dynamic choices, we must add each project here to enable manual deployments # See https://github.com/community/community/discussions/11795 diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index f96c9c3797..687f99c5d7 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -18,21 +18,33 @@ on: - 'All' - '["approved-premises-and-delius"]' - '["approved-premises-and-oasys"]' + - '["arns-and-delius"]' + - '["assessment-summary-and-delius"]' + - '["cas3-and-delius"]' - '["court-case-and-delius"]' - '["create-and-vary-a-licence-and-delius"]' - '["custody-key-dates-and-delius"]' - '["domain-events-and-delius"]' + - '["dps-and-delius"]' - '["effective-proposal-framework-and-delius"]' - '["external-api-and-delius"]' + - '["hdc-licences-and-delius"]' + - '["hmpps-auth-and-delius"]' - '["make-recall-decisions-and-delius"]' + - '["manage-offences-and-delius"]' - '["manage-pom-cases-and-delius"]' - '["offender-events-and-delius"]' + - '["opd-and-delius"]' - '["pathfinder-and-delius"]' - '["person-search-index-from-delius"]' - '["pre-sentence-reports-to-delius"]' - '["prison-case-notes-to-probation"]' - '["prison-custody-status-to-delius"]' + - '["prison-education-and-delius"]' + - '["prison-identifier-and-delius"]' + - '["prisoner-profile-and-delius"]' - '["refer-and-monitor-and-delius"]' + - '["resettlement-passport-and-delius"]' - '["risk-assessment-scores-to-delius"]' - '["sentence-plan-and-delius"]' - '["sentence-plan-and-oasys"]' @@ -40,18 +52,6 @@ on: - '["tier-to-delius"]' - '["unpaid-work-and-delius"]' - '["workforce-allocations-to-delius"]' - - '["manage-offences-and-delius"]' - - '["resettlement-passport-and-delius"]' - - '["prison-education-and-delius"]' - - '["opd-and-delius"]' - - '["hmpps-auth-and-delius"]' - - '["dps-and-delius"]' - - '["arns-and-delius"]' - - '["cas3-and-delius"]' - - '["hdc-licences-and-delius"]' - - '["prisoner-profile-and-delius"]' - - '["prison-identifier-and-delius"]' - - '["assessment-summary-and-delius"]' # ^ add new projects here # GitHub Actions doesn't support dynamic choices, we must add each project here to enable manual deployments # See https://github.com/community/community/discussions/11795 @@ -68,7 +68,7 @@ jobs: - uses: actions/checkout@v4 - name: Get projects - all if: github.event_name != 'workflow_dispatch' || inputs.projects == 'All' - run: echo "projects=$(find projects -mindepth 1 -maxdepth 1 -printf "%f\n" | jq --raw-input . | jq --slurp --compact-output .)" | tee -a "$GITHUB_ENV" + run: echo "projects=$(cd projects && find . -name tech-docs -exec dirname {} \; | sed 's#^\./##' | jq --raw-input . | jq --slurp --compact-output .)" | tee -a "$GITHUB_ENV" - name: Get projects - selected if: github.event_name == 'workflow_dispatch' && inputs.projects != 'All' run: echo 'projects=${{ inputs.projects }}' | tee -a "$GITHUB_ENV" diff --git a/.github/workflows/suppress-trivy.yml b/.github/workflows/suppress-trivy.yml new file mode 100644 index 0000000000..e69de29bb2 diff --git a/.idea/runConfigurations/domain-events-and-delius.xml b/.idea/runConfigurations/domain_events_and_delius.xml similarity index 87% rename from .idea/runConfigurations/domain-events-and-delius.xml rename to .idea/runConfigurations/domain_events_and_delius.xml index c51b587949..ac99a2e69c 100644 --- a/.idea/runConfigurations/domain-events-and-delius.xml +++ b/.idea/runConfigurations/domain_events_and_delius.xml @@ -1,7 +1,7 @@