@@ -13,9 +13,9 @@ concurrency:
1313permissions : {}
1414
1515jobs :
16- build-push-base :
17- name : Build → Push → Test (🍨 base)
18- uses : ./.github/workflows/wc- build-push-test.yml
16+ build-push-test :
17+ name : Build → Push → Test
18+ uses : ./.github/workflows/build-push-test.yml
1919 permissions :
2020 actions : read # is needed by anchore/sbom-action to find workflow artifacts when attaching release assets
2121 artifact-metadata : write # is needed by actions/attest-build-provenance to write artifact metadata
2424 id-token : write # is needed by actions/attest-build-provenance to obtain an OIDC token
2525 packages : write # is needed to push image manifest when using GitHub Container Registry
2626 pull-requests : write # is needed by marocchino/sticky-pull-request-comment to post comments
27- with :
28- dockerfile : .devcontainer/base/Dockerfile
29- image-name : ${{ github.repository }}-base
30- integration-test-file : test/base/integration-tests.bats
31-
32- build-push-flavors :
33- name : Build → Push → Test (🍨 ${{ matrix.flavor }})
34- needs : build-push-base
35- strategy :
36- matrix :
37- flavor : [cpp, rust]
38- uses : ./.github/workflows/wc-build-push-test.yml
39- secrets :
40- TEST_GITHUB_TOKEN : ${{ secrets.TEST_GITHUB_TOKEN }}
41- TEST_GITHUB_USER : ${{ secrets.TEST_GITHUB_USER }}
42- TEST_GITHUB_PASSWORD : ${{ secrets.TEST_GITHUB_PASSWORD }}
43- TEST_GITHUB_TOTP_SECRET : ${{ secrets.TEST_GITHUB_TOTP_SECRET }}
44- permissions :
45- actions : read # is needed by anchore/sbom-action to find workflow artifacts when attaching release assets
46- artifact-metadata : write # is needed by actions/attest-build-provenance to write artifact metadata
47- attestations : write # is needed by actions/attest-build-provenance to push attestations
48- contents : write # is needed by anchore/sbom-action for artifact uploads
49- id-token : write # is needed by actions/attest-build-provenance to obtain an OIDC token
50- packages : write # is needed to push image manifest when using GitHub Container Registry
51- pull-requests : write # is needed by marocchino/sticky-pull-request-comment to post comments
52- with :
53- build-args : |
54- BASE_IMAGE=${{ needs.build-push-base.outputs.fully-qualified-image-name }}@${{ needs.build-push-base.outputs.digest }}
55- devcontainer-metadata-file : .devcontainer/${{ matrix.flavor }}/devcontainer-metadata.json
56- dockerfile : .devcontainer/${{ matrix.flavor }}/Dockerfile
57- image-name : ${{ github.repository }}-${{ matrix.flavor }}
58- integration-test-file : test/${{ matrix.flavor }}/integration-tests.bats
59- acceptance-test-path : ${{ matrix.flavor == 'cpp' && 'test/cpp/features' || '' }}
60- test-devcontainer-file : ${{ matrix.flavor == 'cpp' && '.devcontainer/cpp-test/devcontainer.json' || '' }}
6127
6228 apply-release-notes-template :
6329 name : 📝 Apply Release Template
9662 # Please note that this is an overly broad scope, but GitHub does not
9763 # currently provide a more fine-grained permission for release modification.
9864 contents : write # is needed to modify a release
99- needs : [build-push-base, build-push-flavors , apply-release-notes-template]
65+ needs : [build-push-test , apply-release-notes-template]
10066 env :
10167 CONTAINER_FLAVOR : ${{ matrix.flavor }}
10268 REF_NAME : ${{ github.ref_name }}
0 commit comments