You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by pk...@apache.org on 2024/10/17 10:11:37 UTC
(logging-log4j2) branch feature/2.x/separate-reproducibility-check created (now e41dcfd11f)
This is an automated email from the ASF dual-hosted git repository.
pkarwasz pushed a change to branch feature/2.x/separate-reproducibility-check
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git
at e41dcfd11f Run reproducibility check after each deployment
This branch includes the following new commits:
new e41dcfd11f Run reproducibility check after each deployment
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
(logging-log4j2) 01/01: Run reproducibility check after each deployment
Posted by pk...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
pkarwasz pushed a commit to branch feature/2.x/separate-reproducibility-check
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git
commit e41dcfd11f3882bf4e7de8a9a005f087ec176107
Author: Piotr P. Karwasz <pi...@karwasz.org>
AuthorDate: Thu Oct 17 12:11:24 2024 +0200
Run reproducibility check after each deployment
This PR starts a separate `verify-reproducibility` job, whenever a snapshot or release is deployed.
---
.github/workflows/build.yaml | 19 +++++++++++++++----
1 file changed, 15 insertions(+), 4 deletions(-)
diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml
index ac7d6128ff..3d2307bc01 100644
--- a/.github/workflows/build.yaml
+++ b/.github/workflows/build.yaml
@@ -30,7 +30,7 @@ jobs:
build:
if: github.actor != 'dependabot[bot]'
- uses: apache/logging-parent/.github/workflows/build-reusable.yaml@rel/11.3.0
+ uses: apache/logging-parent/.github/workflows/build-reusable.yaml@feature/reproducibility-check
secrets:
DV_ACCESS_TOKEN: ${{ startsWith(github.ref_name, 'release/') && '' || secrets.GE_ACCESS_TOKEN }}
with:
@@ -38,13 +38,13 @@ jobs:
8
17
site-enabled: true
- reproducibility-check-enabled: ${{ startsWith(github.ref_name, 'release/') }}
+ reproducibility-check-enabled: false
develocity-enabled: ${{ ! startsWith(github.ref_name, 'release/') }}
deploy-snapshot:
needs: build
if: github.repository == 'apache/logging-log4j2' && github.ref_name == '2.x'
- uses: apache/logging-parent/.github/workflows/deploy-snapshot-reusable.yaml@rel/11.3.0
+ uses: apache/logging-parent/.github/workflows/deploy-snapshot-reusable.yaml@feature/reproducibility-check
# Secrets for deployments
secrets:
NEXUS_USERNAME: ${{ secrets.NEXUS_USER }}
@@ -57,7 +57,7 @@ jobs:
deploy-release:
needs: build
if: github.repository == 'apache/logging-log4j2' && startsWith(github.ref_name, 'release/')
- uses: apache/logging-parent/.github/workflows/deploy-release-reusable.yaml@rel/11.3.0
+ uses: apache/logging-parent/.github/workflows/deploy-release-reusable.yaml@feature/reproducibility-check
# Secrets for deployments
secrets:
GPG_SECRET_KEY: ${{ secrets.LOGGING_GPG_SECRET_KEY }}
@@ -73,3 +73,14 @@ jobs:
8
17
project-id: log4j
+
+ verify-reproducibility:
+ needs: [ deploy-snapshot, deploy-release ]
+ if: ${{ always() && (needs.deploy-snapshot.result == 'success' || needs.deploy-release.result == 'success') }}
+ uses: apache/logging-parent/.github/workflows/verify-reproducibility-reusable.yaml@feature/reproducibility-check
+ with:
+ nexus-url: ${{ needs.deploy-release.result == 'success' && needs.deploy-release.outputs.nexus-url || needs.deploy-snapshot.outputs.nexus-url }}
+ # Checkout the repository by branch name, since the deployment job might add commits to the branch
+ ref: ${{ github.ref_name }}
+ # Encode the `runs-on` input as JSON array
+ runs-on: '["ubuntu-latest", "macos-latest", "windows-latest"]'
\ No newline at end of file