|
| 1 | +name: Full Deployment |
| 2 | + |
| 3 | +on: |
| 4 | + workflow_dispatch: |
| 5 | + inputs: |
| 6 | + environment: |
| 7 | + description: "Which environment would you like to deploy to?" |
| 8 | + type: choice |
| 9 | + options: |
| 10 | + - dev |
| 11 | + - pre-prod |
| 12 | + - prod |
| 13 | + required: true |
| 14 | + is_deployment: |
| 15 | + description: "Do you want to apply changes?" |
| 16 | + type: boolean |
| 17 | + default: false |
| 18 | + required: true |
| 19 | + |
| 20 | +permissions: |
| 21 | + pull-requests: write |
| 22 | + id-token: write |
| 23 | + contents: read |
| 24 | + |
| 25 | +jobs: |
| 26 | + ehr-repo: |
| 27 | + name: EHR Repo CI |
| 28 | + secrets: inherit |
| 29 | + uses: './.github/workflows/base-node-service-jobs.yml' |
| 30 | + with: |
| 31 | + service: ehr-repo |
| 32 | + environment: ${{ inputs.environment }} |
| 33 | + is_deployment: ${{ inputs.is_deployment }} |
| 34 | + |
| 35 | + |
| 36 | + ehr-out-service: |
| 37 | + name: EHR Out Service CI |
| 38 | + secrets: inherit |
| 39 | + uses: './.github/workflows/base-node-service-jobs.yml' |
| 40 | + with: |
| 41 | + service: ehr-out-service |
| 42 | + environment: ${{ inputs.environment }} |
| 43 | + is_deployment: ${{ inputs.is_deployment }} |
| 44 | + |
| 45 | + mesh-inbox-s3-forwarder: |
| 46 | + name: MESH Inbox S3 Forwarder Ci |
| 47 | + uses: './.github/workflows/base-python-service-jobs.yml' |
| 48 | + with: |
| 49 | + service: mesh-inbox-s3-forwarder |
| 50 | + environment: ${{ inputs.environment }} |
| 51 | + is_deployment: ${{ inputs.is_deployment }} |
| 52 | + deploy_infra: false |
| 53 | + secrets: inherit |
| 54 | + |
| 55 | + mesh-forwarder: |
| 56 | + name: MESH Forwarder CI |
| 57 | + needs: [ mesh-inbox-s3-forwarder ] |
| 58 | + uses: './.github/workflows/base-python-service-jobs.yml' |
| 59 | + with: |
| 60 | + service: mesh-forwarder |
| 61 | + environment: ${{ inputs.environment }} |
| 62 | + is_deployment: ${{ inputs.is_deployment }} |
| 63 | + secrets: inherit |
| 64 | + |
| 65 | + gp2gp-messenger: |
| 66 | + name: GP2GP Messenger CI |
| 67 | + uses: './.github/workflows/base-node-service-jobs.yml' |
| 68 | + with: |
| 69 | + service: gp2gp-messenger |
| 70 | + environment: ${{ inputs.environment }} |
| 71 | + is_deployment: ${{ inputs.is_deployment }} |
| 72 | + secrets: inherit |
| 73 | + |
| 74 | + |
| 75 | + nems-event-processor: |
| 76 | + name: NEMs Event Processor CI |
| 77 | + uses: './.github/workflows/base-java-service-jobs.yml' |
| 78 | + with: |
| 79 | + service: nems-event-processor |
| 80 | + environment: ${{ inputs.environment }} |
| 81 | + is_deployment: ${{ inputs.is_deployment }} |
| 82 | + requires_localstack: true |
| 83 | + secrets: inherit |
| 84 | + |
| 85 | + ehr-transfer-service: |
| 86 | + name: EHR Transfer Service CI |
| 87 | + uses: './.github/workflows/base-java-service-jobs.yml' |
| 88 | + with: |
| 89 | + service: ehr-transfer-service |
| 90 | + environment: ${{ inputs.environment }} |
| 91 | + is_deployment: ${{ inputs.is_deployment }} |
| 92 | + requires_localstack: true |
| 93 | + secrets: inherit |
| 94 | + |
| 95 | + pds-adaptor: |
| 96 | + name: PDS Adaptor CI |
| 97 | + uses: './.github/workflows/base-java-service-jobs.yml' |
| 98 | + with: |
| 99 | + service: pds-adaptor |
| 100 | + environment: ${{ inputs.environment }} |
| 101 | + is_deployment: ${{ inputs.is_deployment }} |
| 102 | + java_version: '11' |
| 103 | + secrets: inherit |
| 104 | + |
| 105 | + re-registration-service: |
| 106 | + name: Re-registration Service CI |
| 107 | + uses: './.github/workflows/base-java-service-jobs.yml' |
| 108 | + with: |
| 109 | + service: ehr-transfer-service |
| 110 | + environment: ${{ inputs.environment }} |
| 111 | + is_deployment: ${{ inputs.is_deployment }} |
| 112 | + requires_localstack: true |
| 113 | + secrets: inherit |
| 114 | + |
| 115 | + suspension-service: |
| 116 | + name: Suspension Service CI |
| 117 | + uses: './.github/workflows/base-java-service-jobs.yml' |
| 118 | + with: |
| 119 | + service: suspension-service |
| 120 | + environment: ${{ inputs.environment }} |
| 121 | + is_deployment: ${{ inputs.is_deployment }} |
| 122 | + requires_localstack: true |
| 123 | + secrets: inherit |
| 124 | + |
| 125 | + e2e-testing: |
| 126 | + name: End to End |
| 127 | + if: ${{ vars.E2E_TESTS_ENABLED == 'true' && success() }} |
| 128 | + needs: [ehr-repo, ehr-out-service, mesh-forwarder] |
| 129 | + uses: ./.github/workflows/e2e.yml |
| 130 | + secrets: inherit |
0 commit comments