Factor Docker step into own job
MODIFY
.github/workflows/dendrite.yml
.github/workflows/dendrite.yml
@@ -323,9 +323,8 @@ jobs:
API: ${{ matrix.api && 1 }}
working-directory: complement
- update-docker-images:
- name: Update Docker images
- if: github.repository == 'matrix-org/dendrite' && github.ref_name == 'main'
+ integration-tests-done:
+ name: Integration tests passed
needs: [initial-tests-done, upgrade_test, sytest, complement]
runs-on: ubuntu-latest
steps:
@@ -333,5 +332,9 @@ jobs:
uses: re-actors/alls-green@release/v1
with:
jobs: ${{ toJSON(needs) }}
- - name: Dispatch Docker build
+
+ update-docker-images:
+ name: Update Docker images
+ if: github.repository == 'matrix-org/dendrite' && github.ref_name == 'main'
+ needs: [integration-tests-done]
uses: matrix-org/dendrite/.github/workflows/dendrite.yml@main

Factor Docker step into own job