|
62 | 62 | run: | |
63 | 63 | version=$(cat VERSION | tr -d '\n') |
64 | 64 | echo "service_version=$version" >> $GITHUB_OUTPUT |
65 | | - major=$(echo "$version" | cut -d. -f1) |
66 | | - echo "service_major_version=M$major" >> $GITHUB_OUTPUT |
| 65 | + echo "service_major_version=M$version" >> $GITHUB_OUTPUT |
67 | 66 |
|
68 | 67 | dockerfiles-validation: |
69 | 68 | needs: [ prepare-build ] |
@@ -288,31 +287,38 @@ jobs: |
288 | 287 | image_tag: ${{ needs.prepare-build.outputs.service_major_version }} |
289 | 288 | secrets: inherit |
290 | 289 |
|
291 | | - register-bricks-prod: |
| 290 | + notify-image-available: |
292 | 291 | runs-on: |
293 | 292 | group: infra1-runners-arc |
294 | 293 | labels: runners-small |
295 | | - needs: [ prepare-build, promote-to-stable ] |
| 294 | + needs: [ prepare-build, register-bricks-prod ] |
| 295 | + permissions: |
| 296 | + pull-requests: write |
296 | 297 | if: | |
297 | 298 | !cancelled() && |
298 | 299 | !contains(needs.*.result, 'failure') && |
299 | 300 | needs.prepare-build.outputs.images != '[]' && |
300 | 301 | needs.prepare-build.outputs.images != '' && |
301 | 302 | inputs.deploy |
302 | | - strategy: |
303 | | - matrix: |
304 | | - cluster: [ na1, ca2, perf1, bom1, syd1, na3, eu1, fra1 ] |
305 | 303 | steps: |
306 | | - - name: Checkout repository |
307 | | - uses: actions/checkout@v5 |
308 | | - - name: Register bricks to ${{ matrix.cluster }} |
309 | | - uses: ./.github/actions/rundeck |
310 | | - with: |
311 | | - server: '${{ secrets.RUNDECK_URL }}' |
312 | | - project: ${{ matrix.cluster }}-ansible |
313 | | - job-group: ansible/msf/hotfix |
314 | | - job-name: ${{ matrix.cluster }}_lcm_pipeline_component_tool |
315 | | - vault-url: ${{ secrets.VAULT_ADDRESS }} |
| 304 | + - name: Comment on PR |
| 305 | + run: | |
| 306 | + gh pr comment ${{ inputs.pr_number }} \ |
| 307 | + --repo ${{ github.repository }} \ |
| 308 | + --body "## LCM bricks image available |
| 309 | +
|
| 310 | + New image \`stable/lcm-bricks\` available and tagged for all prod clusters. |
| 311 | + Please, manually run the respective rundeck job for each: ${{ secrets.RUNDECK_URL }} |
| 312 | +
|
| 313 | + | | | |
| 314 | + |---|---| |
| 315 | + | **Version** | \`${{ needs.prepare-build.outputs.service_version }}\` | |
| 316 | + | **Build tag** | \`${{ needs.prepare-build.outputs.image_tag }}\` | |
| 317 | +
|
| 318 | + **Available tags:** |
| 319 | + \`${{ needs.prepare-build.outputs.service_major_version }}\` · \`${{ needs.prepare-build.outputs.service_major_version }}-na1\` · \`${{ needs.prepare-build.outputs.service_major_version }}-ca2\` · \`${{ needs.prepare-build.outputs.service_major_version }}-perf1\` · \`${{ needs.prepare-build.outputs.service_major_version }}-bom1\` · \`${{ needs.prepare-build.outputs.service_major_version }}-syd1\` · \`${{ needs.prepare-build.outputs.service_major_version }}-na3\` · \`${{ needs.prepare-build.outputs.service_major_version }}-eu1\` · \`${{ needs.prepare-build.outputs.service_major_version }}-fra1\`" |
| 320 | + env: |
| 321 | + GH_TOKEN: ${{ secrets.TOKEN_GITHUB_YENKINS }} |
316 | 322 |
|
317 | 323 | create-auto-merge-prod-pr: |
318 | 324 | needs: [ prepare-build, build-helmreleases, register-bricks-prod ] |
|
0 commit comments