-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into 1625-restrict-peers
- Loading branch information
Showing
303 changed files
with
45,373 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
#!/bin/bash | ||
# | ||
# Besu Docs new Besu version update helper | ||
# | ||
|
||
log_error() { | ||
echo "ERROR: $1" | ||
exit 1 | ||
} | ||
|
||
# Validate the environment variables set | ||
[[ -z "$VERSION" ]] && log_error "Environment variable VERSION cannot be empty" | ||
|
||
FILE="${FILE:-docusaurus.config.js}" | ||
GIT_NAME="${GIT_NAME:-Besu Bot}" | ||
GIT_EMAIL="${GIT_EMAIL:-devops@consensys.net}" | ||
BASE_BRANCH="${BASE_BRANCH:-main}" | ||
BRANCH="besu-version-$VERSION" | ||
|
||
# Configure git | ||
git config --global user.name "$GIT_NAME" | ||
git config --global user.email "$GIT_EMAIL" | ||
|
||
# Create branch | ||
git checkout -b "$BRANCH" | ||
|
||
# https://docs-template.consensys.io/configure/versioning#create-a-docs-version | ||
yarn install | ||
npm run docusaurus docs:version "$VERSION" > /dev/null | ||
git add "versioned_docs/version-$VERSION/" | ||
git add "versioned_sidebars/version-$VERSION-sidebars.json" | ||
|
||
git add versions.json | ||
|
||
# Remove stable mark from the existing version | ||
sed -i 's/label\: "stable (\([0-9]*\.[0-9]*\.[0-9]*\))"/label: "\1"/' "$FILE" | ||
|
||
# Add new release as stable version | ||
sed -i "/\/\/ STABLE-AUTOMATION-TOKEN/a \ \"$VERSION\": {\n\ label: \"stable ($VERSION)\",\n\ }," "$FILE" | ||
|
||
# Update the latest version | ||
sed -i "s/lastVersion: \"[0-9]*\.[0-9]*\.[0-9]*\"/lastVersion: \"$VERSION\"/" "$FILE" | ||
|
||
# Output the diff | ||
git diff "$FILE" | ||
git diff versions.json | ||
|
||
# Commit and push branch | ||
git add "$FILE" | ||
git commit -s -m "Update version $VERSION" | ||
git push origin "$BRANCH" | ||
|
||
# Output Git status to see any unexpected file changes. These could be due to changes in the process | ||
echo "===== Git status after commit =====" | ||
git status -s | ||
echo "===================================" | ||
|
||
# Attempt to create PR. If no permission skip the PR creation | ||
echo "Attempt to create PR using base branch $BASE_BRANCH" | ||
gh pr create --base "$BASE_BRANCH" --title "Update Besu version $VERSION" --body "Besu version updated to $VERSION" || { | ||
echo "WRAN: Action does not have permission to create PRs. Ignoring..." | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Update Version | ||
|
||
on: | ||
release: | ||
types: ["released"] | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
type: string | ||
required: true | ||
|
||
jobs: | ||
update: | ||
runs-on: ubuntu-latest | ||
env: | ||
VERSION: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.version || github.event.release.name }} | ||
permissions: | ||
contents: write | ||
pull-requests: write | ||
steps: | ||
- name: Validate version | ||
id: version | ||
run: | | ||
# Validate provided version compatible with the format | ||
echo "${{ env.VERSION }}" | grep -q -e "^[0-9]*\.[0-9]*\.[0-9]*$" || { | ||
echo "Version [${{ env.VERSION }}] is not in expected format '^[0-9]*\.[0-9]*\.[0-9]*$'" | ||
exit 1 | ||
} | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Use Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: '.nvmrc' | ||
cache: 'yarn' | ||
|
||
- name: Update version | ||
run: .github/scripts/update-version.sh | ||
env: | ||
VERSION: ${{ env.VERSION }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+81.1 KB
versioned_docs/version-24.7.0/assets/images/Besu-Tessera-High-Availability.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+61.9 KB
versioned_docs/version-24.7.0/assets/images/CliqueOneIntialSigner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+86.4 KB
versioned_docs/version-24.7.0/assets/images/CliqueTwoIntialSigners.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+199 KB
...ned_docs/version-24.7.0/assets/images/Execution-Consensus-Clients-EngineAPI.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+279 KB
versioned_docs/version-24.7.0/assets/images/Hyperledger-Besu-Client-Libraries.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+127 KB
versioned_docs/version-24.7.0/assets/images/Hyperledger-Besu-Plugin-API.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+293 KB
versioned_docs/version-24.7.0/assets/images/PrivateTransactionProcessing.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+266 KB
versioned_docs/version-24.7.0/assets/images/alethio-light-explorer-screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+504 KB
versioned_docs/version-24.7.0/assets/images/besu-cpu-pattern-during-sync.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+420 KB
versioned_docs/version-24.7.0/assets/images/chainlens-block-details.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+453 KB
versioned_docs/version-24.7.0/assets/images/chainlens-contract-details.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+891 KB
versioned_docs/version-24.7.0/assets/images/chainlens-transaction-details.png
Oops, something went wrong.
Binary file added
BIN
+447 KB
versioned_docs/version-24.7.0/assets/images/chainlens-transactions.png
Oops, something went wrong.
Binary file added
BIN
+5.94 KB
versioned_docs/version-24.7.0/assets/images/create-resource-button-screenshot.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+202 KB
versioned_docs/version-24.7.0/assets/images/deployment-complete-screenshot.png
Oops, something went wrong.
Binary file added
BIN
+143 KB
...docs/version-24.7.0/assets/images/enterprise-ethereum-account-permissioning.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+118 KB
versioned_docs/version-24.7.0/assets/images/kuberenetes-genesis-secrets.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+285 KB
versioned_docs/version-24.7.0/assets/images/kubernetes-bootnode-logs.png
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+144 KB
versioned_docs/version-24.7.0/assets/images/kubernetes-explorer-contracts-1.png
Oops, something went wrong.
Binary file added
BIN
+148 KB
versioned_docs/version-24.7.0/assets/images/kubernetes-explorer-contracts-set.png
Oops, something went wrong.
Binary file added
BIN
+102 KB
versioned_docs/version-24.7.0/assets/images/kubernetes-explorer-explorer.png
Oops, something went wrong.
Binary file added
BIN
+123 KB
versioned_docs/version-24.7.0/assets/images/kubernetes-explorer-validators.png
Oops, something went wrong.
Binary file added
BIN
+56.8 KB
versioned_docs/version-24.7.0/assets/images/kubernetes-explorer-wallet.png
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+52.8 KB
versioned_docs/version-24.7.0/assets/images/kubernetes-genesis-configmaps.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+97.6 KB
versioned_docs/version-24.7.0/assets/images/kubernetes-monitoring.png
Oops, something went wrong.
Binary file added
BIN
+209 KB
versioned_docs/version-24.7.0/assets/images/kubernetes-tx-Besu-logs.png
Oops, something went wrong.
Binary file added
BIN
+202 KB
versioned_docs/version-24.7.0/assets/images/kubernetes-tx-tessera-logs.png
Oops, something went wrong.
Binary file added
BIN
+340 KB
versioned_docs/version-24.7.0/assets/images/kubernetes-validator-logs.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+135 KB
versioned_docs/version-24.7.0/assets/images/mp_5_deployment_complete.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+160 KB
versioned_docs/version-24.7.0/assets/images/node-permissioning-bad-actor.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+144 KB
versioned_docs/version-24.7.0/assets/images/transaction-validation.png
Oops, something went wrong.
Oops, something went wrong.