Skip to content
Draft
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
23 changes: 23 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ jobs:
build:
name: ${{ matrix.component.name }} Image Build
needs: [prepare]
if: needs.prepare.outputs.components != '' && needs.prepare.outputs.components != 'null' && needs.prepare.outputs.components != '[]'
runs-on: ubuntu-latest
permissions:
contents: read
Expand Down Expand Up @@ -147,3 +148,25 @@ jobs:
package-type: 'container'
package-version-ids: ${{ steps.get-ids-for-delete.outputs.ids-for-delete }}
if: ${{ steps.get-ids-for-delete.outputs.ids-for-delete != '' }}
services-build-status:
name: "Services Build Status"
runs-on: ubuntu-latest
needs: [prepare, build]
if: always()
steps:
- name: Check build status
run: |
if [[ "${{ needs.prepare.result }}" == "failure" || "${{ needs.prepare.result }}" == "cancelled" ]]; then
echo "Prepare job failed or was cancelled"
exit 1
fi
if [[ "${{ needs.build.result }}" == "failure" || "${{ needs.build.result }}" == "cancelled" ]]; then
echo "Build job failed or was cancelled"
exit 1
fi
if [[ "${{ needs.build.result }}" == "skipped" ]]; then
echo "Build job was skipped - this is OK"
exit 0
fi
echo "All builds completed successfully!"
exit 0
5 changes: 2 additions & 3 deletions .github/workflows/run_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ jobs:
Pgskipper-Pipeline:
if: ${{ github.actor != 'dependabot[bot]' && github.event.pull_request.user.login != 'dependabot[bot]' }}
needs: Wait-for-images
uses: Netcracker/qubership-test-pipelines/.github/workflows/pgskipper.yaml@acf44dc8f22430d11eb93a679bf54e99b69ee6a2 #v1.5.0
uses: Netcracker/qubership-test-pipelines/.github/workflows/pgskipper.yaml@a23bed13d489e8fe6e335fe717258dea12cbb006 #v1.6.0
with:
repository_name: ${{ github.repository }}
service_branch: '${{ github.head_ref || github.ref_name }}'
pipeline_branch: 'acf44dc8f22430d11eb93a679bf54e99b69ee6a2' #this value must match the value after '@' in 'uses'
pipeline_branch: 'a23bed13d489e8fe6e335fe717258dea12cbb006' #this value must match the value after '@' in 'uses'
secrets:
AWS_S3_ACCESS_KEY_ID: ${{secrets.AWS_S3_ACCESS_KEY_ID}}
AWS_S3_ACCESS_KEY_SECRET: ${{secrets.AWS_S3_ACCESS_KEY_SECRET}}
Expand All @@ -48,4 +48,3 @@ jobs:
exit 1
fi
echo "All tests completed successfully or not required"

Loading