|
7 | 7 | description: Deploy search-sync-worker service?
|
8 | 8 | required: true
|
9 | 9 | type: boolean
|
| 10 | + deploy_integration_sync_worker: |
| 11 | + description: Deploy integration-sync-worker service? |
| 12 | + required: true |
| 13 | + type: boolean |
10 | 14 |
|
11 | 15 | env:
|
12 | 16 | DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
41 | 45 | id: image
|
42 | 46 | run: echo "IMAGE=${{ steps.image-builder.outputs.image }}" >> $GITHUB_OUTPUT
|
43 | 47 |
|
| 48 | + build-and-push-integration-sync-worker: |
| 49 | + runs-on: ubuntu-latest |
| 50 | + if: ${{ inputs.deploy_integration_sync_worker }} |
| 51 | + outputs: |
| 52 | + image: ${{ steps.image.outputs.IMAGE }} |
| 53 | + defaults: |
| 54 | + run: |
| 55 | + shell: bash |
| 56 | + steps: |
| 57 | + - name: Check out repository code |
| 58 | + uses: actions/checkout@v2 |
| 59 | + |
| 60 | + - uses: ./.github/actions/build-docker-image |
| 61 | + id: image-builder |
| 62 | + with: |
| 63 | + image: integration-sync-worker |
| 64 | + |
| 65 | + - name: Set docker image output |
| 66 | + id: image |
| 67 | + run: echo "IMAGE=${{ steps.image-builder.outputs.image }}" >> $GITHUB_OUTPUT |
| 68 | + |
44 | 69 | deploy-search-sync-worker:
|
45 | 70 | needs: build-and-push-search-sync-worker
|
46 | 71 | runs-on: ubuntu-latest
|
|
58 | 83 | service: search-sync-worker
|
59 | 84 | image: ${{ needs.build-and-push-search-sync-worker.outputs.image }}
|
60 | 85 | cluster: ${{ env.CROWD_CLUSTER }}
|
| 86 | + |
| 87 | + deploy-integration-sync-worker: |
| 88 | + needs: build-and-push-integration-sync-worker |
| 89 | + runs-on: ubuntu-latest |
| 90 | + if: ${{ inputs.deploy_integration_sync_worker }} |
| 91 | + defaults: |
| 92 | + run: |
| 93 | + shell: bash |
| 94 | + |
| 95 | + steps: |
| 96 | + - name: Check out repository code |
| 97 | + uses: actions/checkout@v2 |
| 98 | + |
| 99 | + - uses: ./.github/actions/deploy-service |
| 100 | + with: |
| 101 | + service: integration-sync-worker |
| 102 | + image: ${{ needs.build-and-push-integration-sync-worker.outputs.image }} |
| 103 | + cluster: ${{ env.CROWD_CLUSTER }} |
0 commit comments