File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,9 +2,17 @@ name: integration_tests
22
33on :
44 pull_request :
5+ paths-ignore :
6+ - README.md
57 push :
68 branches :
79 - main
10+ paths-ignore :
11+ - README.md
12+
13+ concurrency :
14+ group : integration-tests-${{ github.workflow }}-${{ github.ref }}
15+ cancel-in-progress : true
816
917jobs :
1018 backup_restore_matrix :
Original file line number Diff line number Diff line change @@ -2,24 +2,33 @@ name: build_image
22
33on :
44 push :
5- branches :
6- - main
75 tags :
86 - " *"
9- paths :
10- - " **"
11- - " !README.md"
7+ workflow_run :
8+ workflows :
9+ - integration_tests
10+ types :
11+ - completed
1212
1313permissions :
1414 contents : read
1515 packages : write
1616
17+ concurrency :
18+ group : build-image-${{ github.workflow }}-${{ github.event_name }}-${{ github.ref || github.event.workflow_run.head_branch || github.run_id }}
19+ cancel-in-progress : true
20+
1721jobs :
1822 build :
23+ if : |
24+ (github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')) ||
25+ (github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.head_branch == 'main')
1926 runs-on : ubuntu-latest
2027 steps :
2128 - name : Checkout
2229 uses : actions/checkout@v4
30+ with :
31+ ref : ${{ github.event_name == 'workflow_run' && github.event.workflow_run.head_sha || github.sha }}
2332
2433 - name : Set up QEMU
2534 uses : docker/setup-qemu-action@v3
4049 with :
4150 images : ghcr.io/${{ github.repository }}
4251 tags : |
43- type=raw,value=latest,enable={{is_default_branch}}
44- type=ref,event=branch
52+ type=raw,value=latest,enable=${{ github.event_name == 'workflow_run' }}
4553 type=ref,event=tag
4654 type=sha
4755
Original file line number Diff line number Diff line change @@ -7,6 +7,10 @@ permissions:
77 contents : read
88 packages : write
99
10+ concurrency :
11+ group : manual-build-${{ github.workflow }}-${{ github.ref || github.run_id }}
12+ cancel-in-progress : true
13+
1014jobs :
1115 build :
1216 runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments