|
23 | 23 | description: Deploy automations-worker service? |
24 | 24 | required: true |
25 | 25 | type: boolean |
| 26 | + deploy_emails_worker: |
| 27 | + description: Deploy emails-worker service? |
| 28 | + required: true |
| 29 | + type: boolean |
26 | 30 | deploy_script_executor: |
27 | 31 | description: Deploy script-executor service? |
28 | 32 | required: true |
@@ -145,6 +149,27 @@ jobs: |
145 | 149 | id: image |
146 | 150 | run: echo "IMAGE=${{ steps.image-builder.outputs.image }}" >> $GITHUB_OUTPUT |
147 | 151 |
|
| 152 | + build-and-push-emails-worker: |
| 153 | + runs-on: ubuntu-latest |
| 154 | + if: ${{ inputs.deploy_emails_worker }} |
| 155 | + outputs: |
| 156 | + image: ${{ steps.image.outputs.IMAGE }} |
| 157 | + defaults: |
| 158 | + run: |
| 159 | + shell: bash |
| 160 | + steps: |
| 161 | + - name: Check out repository code |
| 162 | + uses: actions/checkout@v2 |
| 163 | + |
| 164 | + - uses: ./.github/actions/build-docker-image |
| 165 | + id: image-builder |
| 166 | + with: |
| 167 | + image: emails-worker |
| 168 | + |
| 169 | + - name: Set docker image output |
| 170 | + id: image |
| 171 | + run: echo "IMAGE=${{ steps.image-builder.outputs.image }}" >> $GITHUB_OUTPUT |
| 172 | + |
148 | 173 | build-and-push-script-executor: |
149 | 174 | runs-on: ubuntu-latest |
150 | 175 | if: ${{ inputs.deploy_script_executor }} |
@@ -256,6 +281,24 @@ jobs: |
256 | 281 | image: ${{ needs.build-and-push-automations-worker.outputs.image }} |
257 | 282 | cluster: ${{ env.CROWD_CLUSTER }} |
258 | 283 |
|
| 284 | + deploy-emails-worker: |
| 285 | + needs: build-and-push-emails-worker |
| 286 | + runs-on: ubuntu-latest |
| 287 | + if: ${{ inputs.deploy_emails_worker }} |
| 288 | + defaults: |
| 289 | + run: |
| 290 | + shell: bash |
| 291 | + |
| 292 | + steps: |
| 293 | + - name: Check out repository code |
| 294 | + uses: actions/checkout@v2 |
| 295 | + |
| 296 | + - uses: ./.github/actions/deploy-service |
| 297 | + with: |
| 298 | + service: emails-worker |
| 299 | + image: ${{ needs.build-and-push-emails-worker.outputs.image }} |
| 300 | + cluster: ${{ env.CROWD_CLUSTER }} |
| 301 | + |
259 | 302 | deploy-script-executor: |
260 | 303 | needs: build-and-push-script-executor |
261 | 304 | runs-on: ubuntu-latest |
|
0 commit comments