|
2 | 2 | name: Build & Push |
3 | 3 |
|
4 | 4 | on: |
5 | | - merge_group: |
6 | | - pull_request: |
7 | | - push: |
8 | | - tags: ["v*.*.*"] |
9 | | - workflow_dispatch: |
10 | | - |
11 | | -concurrency: |
12 | | - group: ${{ github.ref }}-${{ github.workflow }} |
13 | | - cancel-in-progress: true |
| 5 | + workflow_call: |
14 | 6 |
|
15 | 7 | permissions: |
16 | 8 | contents: read |
@@ -125,7 +117,7 @@ jobs: |
125 | 117 | images: ${{ env.REGISTRY }}/${{ github.repository }}-${{ matrix.flavor }} |
126 | 118 | # Generate Docker tags based on the following events/attributes |
127 | 119 | tags: | |
128 | | - type=raw,value=latest,enable={{is_default_branch}} |
| 120 | + type=edge |
129 | 121 | type=ref,event=pr |
130 | 122 | type=semver,pattern={{raw}} |
131 | 123 | type=semver,pattern={{version}} |
@@ -196,43 +188,3 @@ jobs: |
196 | 188 | UPDATED_NOTES=${UPDATED_NOTES//'{{ amp-devcontainer-${{ matrix.flavor }}-version }}'/'${{ github.ref_name }}'} |
197 | 189 | UPDATED_NOTES=${UPDATED_NOTES//'{{ amp-devcontainer-${{ matrix.flavor }}-sha }}'/'${{ steps.inspect-manifest.outputs.digest }}'} |
198 | 190 | gh release edit ${{ github.ref_name }} --notes "${UPDATED_NOTES}" |
199 | | -
|
200 | | - integration-test: |
201 | | - if: github.event_name == 'pull_request' |
202 | | - strategy: |
203 | | - matrix: |
204 | | - flavor: [cpp, rust] |
205 | | - runner: ["ubuntu-latest", "ubuntu-24.04-arm"] |
206 | | - needs: merge-image |
207 | | - secrets: inherit |
208 | | - uses: ./.github/workflows/integration-test.yml |
209 | | - with: |
210 | | - flavor: ${{ matrix.flavor }} |
211 | | - runner: ${{ matrix.runner }} |
212 | | - |
213 | | - acceptance-test: |
214 | | - if: github.event_name == 'pull_request' |
215 | | - needs: merge-image |
216 | | - secrets: inherit |
217 | | - uses: ./.github/workflows/acceptance-test.yml |
218 | | - with: |
219 | | - flavor: cpp |
220 | | - |
221 | | - publish-test-results: |
222 | | - runs-on: ubuntu-latest |
223 | | - permissions: |
224 | | - checks: write |
225 | | - pull-requests: write |
226 | | - needs: [acceptance-test, integration-test] |
227 | | - if: always() |
228 | | - steps: |
229 | | - - uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0 |
230 | | - with: |
231 | | - egress-policy: audit |
232 | | - - uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0 |
233 | | - with: |
234 | | - merge-multiple: true |
235 | | - pattern: test-results-* |
236 | | - - uses: EnricoMi/publish-unit-test-result-action@3a74b2957438d0b6e2e61d67b05318aa25c9e6c6 # v2.20.0 |
237 | | - with: |
238 | | - files: test-report-*.xml |
0 commit comments