Skip to content
Merged
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
34 changes: 17 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -733,23 +733,9 @@ jobs:
path: ${{ github.workspace }}/tests/${{ steps.smoke-tests.outputs.test-results-name }}-${{ matrix.k8s }}.html
if: always()

smoke-results:
if: ${{ always() }}
runs-on: ubuntu-22.04
name: Final Smoke Test Results
needs: [smoke-tests]
steps:
- run: |
result="${{ needs.smoke-tests.result }}"
if [[ $result == "success" || $result == "skipped" ]]; then
exit 0
else
exit 1
fi
tag-stable:
name: Tag tested image as stable
needs: [checks, smoke-results]
needs: [checks, smoke-tests]
permissions:
contents: read # To checkout repository
id-token: write # To sign into Google Container Registry
Expand All @@ -759,15 +745,29 @@ jobs:
target_tag: ${{ needs.checks.outputs.stable_tag }}
dry_run: false
secrets: inherit
if: ${{ inputs.force || (needs.checks.outputs.forked_workflow == 'false' && needs.smoke-results.result == 'success' && needs.checks.outputs.stable_image_exists != 'true' && needs.checks.outputs.docs_only == 'false') }}
if: ${{ inputs.force || (needs.checks.outputs.forked_workflow == 'false' && needs.checks.outputs.stable_image_exists != 'true' && needs.checks.outputs.docs_only == 'false') }}

tag-results:
if: ${{ always() }}
runs-on: ubuntu-22.04
name: Final CI Results
needs: [tag-stable]
steps:
- run: |
result="${{ needs.tag-stable.result }}"
if [[ $result == "success" || $result == "skipped" ]]; then
exit 0
else
exit 1
fi
trigger-image-promotion:
name: Promote images on Force Run
needs:
- build-docker
- build-docker-plus
- build-docker-nap
- smoke-results
- tag-results
permissions:
contents: write # for pushing to Helm Charts repository
id-token: write # To sign into Google Container Registry
Expand Down