Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 22 additions & 19 deletions .github/workflows/lcm-pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ jobs:
run: |
version=$(cat VERSION | tr -d '\n')
echo "service_version=$version" >> $GITHUB_OUTPUT
major=$(echo "$version" | cut -d. -f1)
echo "service_major_version=M$major" >> $GITHUB_OUTPUT
echo "service_major_version=M$version" >> $GITHUB_OUTPUT

dockerfiles-validation:
needs: [ prepare-build ]
Expand Down Expand Up @@ -288,34 +287,38 @@ jobs:
image_tag: ${{ needs.prepare-build.outputs.service_major_version }}
secrets: inherit

register-bricks-prod:
notify-image-available:
runs-on:
group: infra1-runners-arc
labels: runners-small
needs: [ prepare-build, promote-to-stable ]
needs: [ prepare-build ]
permissions:
pull-requests: write
if: |
!cancelled() &&
!contains(needs.*.result, 'failure') &&
needs.prepare-build.outputs.images != '[]' &&
needs.prepare-build.outputs.images != '' &&
inputs.deploy
strategy:
matrix:
cluster: [ na1, ca2, perf1, bom1, syd1, na3, eu1, fra1 ]
steps:
- name: Checkout repository
uses: actions/checkout@v5
- name: Register bricks to ${{ matrix.cluster }}
uses: ./.github/actions/rundeck
with:
server: '${{ secrets.RUNDECK_URL }}'
project: ${{ matrix.cluster }}-ansible
job-group: ansible/msf/hotfix
job-name: ${{ matrix.cluster }}_lcm_pipeline_component_tool
vault-url: ${{ secrets.VAULT_ADDRESS }}
- name: Comment on PR
run: |
gh pr comment ${{ inputs.pr_number }} \
--repo ${{ github.repository }} \
--body "## LCM bricks image available

New image \`stable/lcm-bricks\` available and tagged for all prod clusters.
Please, manually run the respective rundeck job for each: ${{ secrets.RUNDECK_URL }}

| | |
|---|---|
| **Version** | \`${{ needs.prepare-build.outputs.service_version }}\` |
| **Build tag** | \`${{ needs.prepare-build.outputs.image_tag }}\` |
env:
GH_TOKEN: ${{ secrets.TOKEN_GITHUB_YENKINS }}

create-auto-merge-prod-pr:
needs: [ prepare-build, build-helmreleases, register-bricks-prod ]
needs: [ prepare-build, build-helmreleases ]
if: |
!cancelled() &&
!contains(needs.*.result, 'failure') &&
Expand All @@ -335,7 +338,7 @@ jobs:
secrets: inherit

create-manual-merge-prod-pr:
needs: [ prepare-build, build-helmreleases, register-bricks-prod ]
needs: [ prepare-build, build-helmreleases ]
if: |
!cancelled() &&
!contains(needs.*.result, 'failure') &&
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.7.105
3.7.106
Loading