@@ -30,21 +30,21 @@ jobs:
3030
3131 build :
3232 if : github.actor != 'dependabot[bot]'
33- uses : apache/logging-parent/.github/workflows/build-reusable.yaml@rel/11.3 .0
33+ uses : apache/logging-parent/.github/workflows/build-reusable.yaml@rel/12.1 .0
3434 secrets :
35- DV_ACCESS_TOKEN : ${{ startsWith(github.ref_name, 'release/') && '' || secrets.GE_ACCESS_TOKEN }}
35+ DV_ACCESS_TOKEN : ${{ startsWith(github.ref_name, 'release/') && '' || secrets.DEVELOCITY_ACCESS_KEY }}
3636 with :
3737 java-version : |
3838 8
3939 17
4040 site-enabled : true
41- reproducibility-check-enabled : ${{ startsWith(github.ref_name, 'release/') }}
41+ reproducibility-check-enabled : false
4242 develocity-enabled : ${{ ! startsWith(github.ref_name, 'release/') }}
4343
4444 deploy-snapshot :
4545 needs : build
4646 if : github.repository == 'apache/logging-log4j2' && github.ref_name == '2.x'
47- uses : apache/logging-parent/.github/workflows/deploy-snapshot-reusable.yaml@rel/11.3 .0
47+ uses : apache/logging-parent/.github/workflows/deploy-snapshot-reusable.yaml@rel/12.1 .0
4848 # Secrets for deployments
4949 secrets :
5050 NEXUS_USERNAME : ${{ secrets.NEXUS_USER }}
5757 deploy-release :
5858 needs : build
5959 if : github.repository == 'apache/logging-log4j2' && startsWith(github.ref_name, 'release/')
60- uses : apache/logging-parent/.github/workflows/deploy-release-reusable.yaml@rel/11.3 .0
60+ uses : apache/logging-parent/.github/workflows/deploy-release-reusable.yaml@rel/12.1 .0
6161 # Secrets for deployments
6262 secrets :
6363 GPG_SECRET_KEY : ${{ secrets.LOGGING_GPG_SECRET_KEY }}
7373 8
7474 17
7575 project-id : log4j
76+
77+ verify-reproducibility :
78+ needs : [ deploy-snapshot, deploy-release ]
79+ if : ${{ always() && (needs.deploy-snapshot.result == 'success' || needs.deploy-release.result == 'success') }}
80+ name : " verify-reproducibility (${{ needs.deploy-release.result == 'success' && needs.deploy-release.outputs.project-version || needs.deploy-snapshot.outputs.project-version }})"
81+ uses : apache/logging-parent/.github/workflows/verify-reproducibility-reusable.yaml@rel/12.1.0
82+ with :
83+ nexus-url : ${{ needs.deploy-release.result == 'success' && needs.deploy-release.outputs.nexus-url || 'https://repository.apache.org/content/groups/snapshots' }}
84+ # Encode the `runs-on` input as JSON array
85+ runs-on : ' ["ubuntu-latest", "macos-latest", "windows-latest"]'
86+
87+ # Run integration-tests automatically after a snapshot or RC is published
88+ integration-test :
89+ needs : [ deploy-snapshot, deploy-release ]
90+ if : ${{ always() && (needs.deploy-snapshot.result == 'success' || needs.deploy-release.result == 'success') }}
91+ name : " integration-test (${{ needs.deploy-release.result == 'success' && needs.deploy-release.outputs.project-version || needs.deploy-snapshot.outputs.project-version }})"
92+ uses : apache/logging-log4j-samples/.github/workflows/integration-test.yaml@main
93+ with :
94+ log4j-version : ${{ needs.deploy-release.result == 'success' && needs.deploy-release.outputs.project-version || needs.deploy-snapshot.outputs.project-version }}
95+ log4j-repository-url : ${{ needs.deploy-release.result == 'success' && needs.deploy-release.outputs.nexus-url || needs.deploy-snapshot.outputs.nexus-url }}
96+ # Use the `main` branch of `logging-log4j-samples`
97+ samples-ref : ' refs/heads/main'
0 commit comments