|
7 | 7 | description: Deploy search-sync-worker service?
|
8 | 8 | required: true
|
9 | 9 | type: boolean
|
| 10 | + deploy_search_sync_api: |
| 11 | + description: Deploy search-sync-api service? |
| 12 | + required: true |
| 13 | + type: boolean |
10 | 14 | deploy_integration_sync_worker:
|
11 | 15 | description: Deploy integration-sync-worker service?
|
12 | 16 | required: true
|
|
56 | 60 | - name: Set docker image output
|
57 | 61 | id: image
|
58 | 62 | run: echo "IMAGE=${{ steps.image-builder.outputs.image }}" >> $GITHUB_OUTPUT
|
| 63 | + |
| 64 | + build-and-push-search-sync-api: |
| 65 | + runs-on: ubuntu-latest |
| 66 | + if: ${{ inputs.deploy_search_sync_api }} |
| 67 | + outputs: |
| 68 | + image: ${{ steps.image.outputs.IMAGE }} |
| 69 | + defaults: |
| 70 | + run: |
| 71 | + shell: bash |
| 72 | + steps: |
| 73 | + - name: Check out repository code |
| 74 | + uses: actions/checkout@v2 |
| 75 | + |
| 76 | + - uses: ./.github/actions/build-docker-image |
| 77 | + id: image-builder |
| 78 | + with: |
| 79 | + image: search-sync-api |
| 80 | + |
| 81 | + - name: Set docker image output |
| 82 | + id: image |
| 83 | + run: echo "IMAGE=${{ steps.image-builder.outputs.image }}" >> $GITHUB_OUTPUT |
59 | 84 |
|
60 | 85 | build-and-push-integration-sync-worker:
|
61 | 86 | runs-on: ubuntu-latest
|
@@ -159,6 +184,24 @@ jobs:
|
159 | 184 | image: ${{ needs.build-and-push-search-sync-worker.outputs.image }}
|
160 | 185 | cluster: ${{ env.CROWD_CLUSTER }}
|
161 | 186 |
|
| 187 | + deploy-search-sync-api: |
| 188 | + needs: build-and-push-search-sync-api |
| 189 | + runs-on: ubuntu-latest |
| 190 | + if: ${{ inputs.deploy_search_sync_api }} |
| 191 | + defaults: |
| 192 | + run: |
| 193 | + shell: bash |
| 194 | + |
| 195 | + steps: |
| 196 | + - name: Check out repository code |
| 197 | + uses: actions/checkout@v2 |
| 198 | + |
| 199 | + - uses: ./.github/actions/deploy-service |
| 200 | + with: |
| 201 | + service: search-sync-api |
| 202 | + image: ${{ needs.build-and-push-search-sync-api.outputs.image }} |
| 203 | + cluster: ${{ env.CROWD_CLUSTER }} |
| 204 | + |
162 | 205 | deploy-integration-sync-worker:
|
163 | 206 | needs: build-and-push-integration-sync-worker
|
164 | 207 | runs-on: ubuntu-latest
|
|
0 commit comments