-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8a3b7b4
commit 6125fc0
Showing
8 changed files
with
623 additions
and
214 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,102 @@ | ||
--- | ||
name: 'assemble-devnet' | ||
description: 'Composite action to assemble the devnet artifacts' | ||
|
||
outputs: | ||
workflow_id: | ||
description: workflow id | ||
value: ${{ steps.workflowdetails.outputs.id }} | ||
|
||
build_date: | ||
description: build date | ||
value: ${{ steps.workflowdetails.outputs.build_date }} | ||
|
||
dockertag: | ||
description: docker tag | ||
value: ${{ steps.dockertag.outputs.dockertag }} | ||
|
||
dockerimage: | ||
description: docker image | ||
value: ${{ steps.dockerimage.outputs.dockerimage }} | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Checkout tools repo | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: Consensys/docs-gha | ||
path: .docs-gha | ||
|
||
- name: get workflow_details | ||
id: workflowdetails | ||
shell: bash | ||
run: | | ||
echo "id=${{ github.run_id }}" >> $GITHUB_OUTPUT | ||
echo "build_date=$(date --rfc-3339=date)" >> $GITHUB_OUTPUT | ||
- name: get versions via dotenv | ||
id: dotenv | ||
uses: falti/dotenv-action@v1 | ||
with: | ||
path: versions/linea-sepolia.env | ||
mode: development | ||
keys-case: lower | ||
log-variables: true | ||
load-mode: strict | ||
|
||
- name: set docker tag | ||
id: dockertag | ||
shell: bash | ||
run: | | ||
if [ "${{ github.event_name }}" == "push" ] && [ "${{ github.ref_type }}" == "tag" ]; then | ||
echo "dockertag=devnet-${{ github.ref_name }}" >> $GITHUB_OUTPUT | ||
else | ||
echo "dockertag=devnet-$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT | ||
fi | ||
- name: set docker image | ||
id: dockerimage | ||
shell: bash | ||
run: | | ||
echo "dockerimage=consensys/linea-besu-package:${{ steps.dockertag.outputs.dockertag }}" >> "$GITHUB_OUTPUT" | ||
- name: download and untar the linea-besu archive | ||
shell: bash | ||
run: | | ||
cd /tmp/ | ||
echo "downloading linea-besu: ${{ steps.dotenv.outputs.LINEA_BESU_TAR_GZ }}" | ||
wget -nv "https://artifacts.consensys.net/public/linea-besu/raw/names/linea-besu.tar.gz/versions/${{ steps.dotenv.outputs.LINEA_BESU_TAR_GZ }}/linea-besu-${{ steps.dotenv.outputs.LINEA_BESU_TAR_GZ }}.tar.gz" | ||
tar -xvf linea-besu-${{ steps.dotenv.outputs.LINEA_BESU_TAR_GZ }}.tar.gz | ||
mv /tmp/linea-besu-${{ steps.dotenv.outputs.LINEA_BESU_TAR_GZ }} /tmp/besu | ||
- name: copy the list of versions to the container | ||
shell: bash | ||
run: | | ||
cp ./versions/linea-devnet.env /tmp/besu/versions.txt | ||
mkdir -p /tmp/besu/plugins | ||
- name: get the plugins | ||
shell: bash | ||
run: | | ||
cd /tmp/besu/plugins | ||
echo "getting linea_sequencer_plugin_version: ${{ steps.dotenv.outputs.LINEA_SEQUENCER_PLUGIN_VERSION }}" | ||
wget -nv "https://github.com/Consensys/linea-sequencer/releases/download/v${{ steps.dotenv.outputs.LINEA_SEQUENCER_PLUGIN_VERSION }}/linea-sequencer-v${{ steps.dotenv.outputs.LINEA_SEQUENCER_PLUGIN_VERSION }}.jar" -P /tmp/besu/plugins | ||
echo "getting finalized_tag_updater_plugin_version: ${{ steps.dotenv.outputs.FINALIZED_TAG_UPDATER_PLUGIN_VERSION }}" | ||
wget -nv "https://github.com/Consensys/linea-monorepo/releases/download/finalized-tag-updater-v${{ steps.dotenv.outputs.FINALIZED_TAG_UPDATER_PLUGIN_VERSION }}/finalized-tag-updater-v${{ steps.dotenv.outputs.FINALIZED_TAG_UPDATER_PLUGIN_VERSION }}.jar" -P /tmp/besu/plugins | ||
echo "getting linea_tracer_plugin_version: ${{ steps.dotenv.outputs.LINEA_TRACER_PLUGIN_VERSION }}" | ||
wget -nv "https://github.com/Consensys/linea-tracer/releases/download/v${{ steps.dotenv.outputs.LINEA_TRACER_PLUGIN_VERSION }}/linea-tracer-v${{ steps.dotenv.outputs.LINEA_TRACER_PLUGIN_VERSION }}.jar" -P /tmp/besu/plugins | ||
echo "getting shomei_plugin_version: ${{ steps.dotenv.outputs.SHOMEI_PLUGIN_VERSION }}" | ||
wget -nv "https://github.com/Consensys/besu-shomei-plugin/releases/download/v${{ steps.dotenv.outputs.SHOMEI_PLUGIN_VERSION }}/besu-shomei-plugin-v${{ steps.dotenv.outputs.SHOMEI_PLUGIN_VERSION }}.jar" -P /tmp/besu/plugins | ||
- name: piece the package together to build the docker images | ||
shell: bash | ||
run: | | ||
cd linea-besu | ||
mv /tmp/besu ./ | ||
mv config/ genesis/ profiles/ besu/ | ||
tree . |
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,102 @@ | ||
--- | ||
name: 'assemble-mainnet' | ||
description: 'Composite action to assemble the mainnet artifacts' | ||
|
||
outputs: | ||
workflow_id: | ||
description: workflow id | ||
value: ${{ steps.workflowdetails.outputs.id }} | ||
|
||
build_date: | ||
description: build date | ||
value: ${{ steps.workflowdetails.outputs.build_date }} | ||
|
||
dockertag: | ||
description: docker tag | ||
value: ${{ steps.dockertag.outputs.dockertag }} | ||
|
||
dockerimage: | ||
description: docker image | ||
value: ${{ steps.dockerimage.outputs.dockerimage }} | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Checkout tools repo | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: Consensys/docs-gha | ||
path: .docs-gha | ||
|
||
- name: get workflow_details | ||
id: workflowdetails | ||
shell: bash | ||
run: | | ||
echo "id=${{ github.run_id }}" >> $GITHUB_OUTPUT | ||
echo "build_date=$(date --rfc-3339=date)" >> $GITHUB_OUTPUT | ||
- name: get versions via dotenv | ||
id: dotenv | ||
uses: falti/dotenv-action@v1 | ||
with: | ||
path: versions/linea-mainnet.env | ||
mode: development | ||
keys-case: lower | ||
log-variables: true | ||
load-mode: strict | ||
|
||
- name: set docker tag | ||
id: dockertag | ||
shell: bash | ||
run: | | ||
if [ "${{ github.event_name }}" == "push" ] && [ "${{ github.ref_type }}" == "tag" ]; then | ||
echo "dockertag=mainnet-${{ github.ref_name }}" >> $GITHUB_OUTPUT | ||
else | ||
echo "dockertag=mainnet-$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT | ||
fi | ||
- name: set docker image | ||
id: dockerimage | ||
shell: bash | ||
run: | | ||
echo "dockerimage=consensys/linea-besu-package:${{ steps.dockertag.outputs.dockertag }}" >> "$GITHUB_OUTPUT" | ||
- name: download and untar the linea-besu archive | ||
shell: bash | ||
run: | | ||
cd /tmp/ | ||
echo "downloading linea-besu: ${{ steps.dotenv.outputs.LINEA_BESU_TAR_GZ }}" | ||
wget -nv "https://artifacts.consensys.net/public/linea-besu/raw/names/linea-besu.tar.gz/versions/${{ steps.dotenv.outputs.LINEA_BESU_TAR_GZ }}/linea-besu-${{ steps.dotenv.outputs.LINEA_BESU_TAR_GZ }}.tar.gz" | ||
tar -xvf linea-besu-${{ steps.dotenv.outputs.LINEA_BESU_TAR_GZ }}.tar.gz | ||
mv /tmp/linea-besu-${{ steps.dotenv.outputs.LINEA_BESU_TAR_GZ }} /tmp/besu | ||
- name: copy the list of versions to the container | ||
shell: bash | ||
run: | | ||
cp ./versions/linea-mainnet.env /tmp/besu/versions.txt | ||
mkdir -p /tmp/besu/plugins | ||
- name: get the plugins | ||
shell: bash | ||
run: | | ||
cd /tmp/besu/plugins | ||
echo "getting linea_sequencer_plugin_version: ${{ steps.dotenv.outputs.LINEA_SEQUENCER_PLUGIN_VERSION }}" | ||
wget -nv "https://github.com/Consensys/linea-sequencer/releases/download/v${{ steps.dotenv.outputs.LINEA_SEQUENCER_PLUGIN_VERSION }}/besu-sequencer-plugins-v${{ steps.dotenv.outputs.LINEA_SEQUENCER_PLUGIN_VERSION }}.jar" -P /tmp/besu/plugins | ||
echo "getting finalized_tag_updater_plugin_version: ${{ steps.dotenv.outputs.FINALIZED_TAG_UPDATER_PLUGIN_VERSION }}" | ||
wget -nv "https://github.com/Consensys/linea-monorepo/releases/download/finalized-tag-updater-v${{ steps.dotenv.outputs.FINALIZED_TAG_UPDATER_PLUGIN_VERSION }}/finalized-tag-updater-v${{ steps.dotenv.outputs.FINALIZED_TAG_UPDATER_PLUGIN_VERSION }}.jar" -P /tmp/besu/plugins | ||
echo "getting linea_tracer_plugin_version: ${{ steps.dotenv.outputs.LINEA_TRACER_PLUGIN_VERSION }}" | ||
wget -nv "https://github.com/Consensys/linea-tracer/releases/download/v${{ steps.dotenv.outputs.LINEA_TRACER_PLUGIN_VERSION }}/linea-tracer-v${{ steps.dotenv.outputs.LINEA_TRACER_PLUGIN_VERSION }}.jar" -P /tmp/besu/plugins | ||
echo "getting shomei_plugin_version: ${{ steps.dotenv.outputs.SHOMEI_PLUGIN_VERSION }}" | ||
wget -nv "https://github.com/Consensys/besu-shomei-plugin/releases/download/v${{ steps.dotenv.outputs.SHOMEI_PLUGIN_VERSION }}/besu-shomei-plugin-v${{ steps.dotenv.outputs.SHOMEI_PLUGIN_VERSION }}.jar" -P /tmp/besu/plugins | ||
- name: piece the package together to build the docker images | ||
shell: bash | ||
run: | | ||
cd linea-besu | ||
mv /tmp/besu ./ | ||
mv config/ genesis/ profiles/ besu/ | ||
tree . |
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,102 @@ | ||
--- | ||
name: 'assemble-sepolia' | ||
description: 'Composite action to assemble the sepolia artifacts' | ||
|
||
outputs: | ||
workflow_id: | ||
description: workflow id | ||
value: ${{ steps.workflowdetails.outputs.id }} | ||
|
||
build_date: | ||
description: build date | ||
value: ${{ steps.workflowdetails.outputs.build_date }} | ||
|
||
dockertag: | ||
description: docker tag | ||
value: ${{ steps.dockertag.outputs.dockertag }} | ||
|
||
dockerimage: | ||
description: docker image | ||
value: ${{ steps.dockerimage.outputs.dockerimage }} | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Checkout tools repo | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: Consensys/docs-gha | ||
path: .docs-gha | ||
|
||
- name: get workflow_details | ||
id: workflowdetails | ||
shell: bash | ||
run: | | ||
echo "id=${{ github.run_id }}" >> $GITHUB_OUTPUT | ||
echo "build_date=$(date --rfc-3339=date)" >> $GITHUB_OUTPUT | ||
- name: get versions via dotenv | ||
id: dotenv | ||
uses: falti/dotenv-action@v1 | ||
with: | ||
path: versions/linea-sepolia.env | ||
mode: development | ||
keys-case: lower | ||
log-variables: true | ||
load-mode: strict | ||
|
||
- name: set docker tag | ||
id: dockertag | ||
shell: bash | ||
run: | | ||
if [ "${{ github.event_name }}" == "push" ] && [ "${{ github.ref_type }}" == "tag" ]; then | ||
echo "dockertag=sepolia-${{ github.ref_name }}" >> $GITHUB_OUTPUT | ||
else | ||
echo "dockertag=sepolia-$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT | ||
fi | ||
- name: set docker image | ||
id: dockerimage | ||
shell: bash | ||
run: | | ||
echo "dockerimage=consensys/linea-besu-package:${{ steps.dockertag.outputs.dockertag }}" >> "$GITHUB_OUTPUT" | ||
- name: download and untar the linea-besu archive | ||
shell: bash | ||
run: | | ||
cd /tmp/ | ||
echo "downloading linea-besu: ${{ steps.dotenv.outputs.LINEA_BESU_TAR_GZ }}" | ||
wget -nv "https://artifacts.consensys.net/public/linea-besu/raw/names/linea-besu.tar.gz/versions/${{ steps.dotenv.outputs.LINEA_BESU_TAR_GZ }}/linea-besu-${{ steps.dotenv.outputs.LINEA_BESU_TAR_GZ }}.tar.gz" | ||
tar -xvf linea-besu-${{ steps.dotenv.outputs.LINEA_BESU_TAR_GZ }}.tar.gz | ||
mv /tmp/linea-besu-${{ steps.dotenv.outputs.LINEA_BESU_TAR_GZ }} /tmp/besu | ||
- name: copy the list of versions to the container | ||
shell: bash | ||
run: | | ||
cp ./versions/linea-sepolia.env /tmp/besu/versions.txt | ||
mkdir -p /tmp/besu/plugins | ||
- name: get the plugins | ||
shell: bash | ||
run: | | ||
cd /tmp/besu/plugins | ||
echo "getting linea_sequencer_plugin_version: ${{ steps.dotenv.outputs.LINEA_SEQUENCER_PLUGIN_VERSION }}" | ||
wget -nv "https://github.com/Consensys/linea-sequencer/releases/download/v${{ steps.dotenv.outputs.LINEA_SEQUENCER_PLUGIN_VERSION }}/linea-sequencer-v${{ steps.dotenv.outputs.LINEA_SEQUENCER_PLUGIN_VERSION }}.jar" -P /tmp/besu/plugins | ||
echo "getting finalized_tag_updater_plugin_version: ${{ steps.dotenv.outputs.FINALIZED_TAG_UPDATER_PLUGIN_VERSION }}" | ||
wget -nv "https://github.com/Consensys/linea-monorepo/releases/download/finalized-tag-updater-v${{ steps.dotenv.outputs.FINALIZED_TAG_UPDATER_PLUGIN_VERSION }}/finalized-tag-updater-v${{ steps.dotenv.outputs.FINALIZED_TAG_UPDATER_PLUGIN_VERSION }}.jar" -P /tmp/besu/plugins | ||
echo "getting linea_tracer_plugin_version: ${{ steps.dotenv.outputs.LINEA_TRACER_PLUGIN_VERSION }}" | ||
wget -nv "https://github.com/Consensys/linea-tracer/releases/download/v${{ steps.dotenv.outputs.LINEA_TRACER_PLUGIN_VERSION }}/linea-tracer-v${{ steps.dotenv.outputs.LINEA_TRACER_PLUGIN_VERSION }}.jar" -P /tmp/besu/plugins | ||
echo "getting shomei_plugin_version: ${{ steps.dotenv.outputs.SHOMEI_PLUGIN_VERSION }}" | ||
wget -nv "https://github.com/Consensys/besu-shomei-plugin/releases/download/v${{ steps.dotenv.outputs.SHOMEI_PLUGIN_VERSION }}/besu-shomei-plugin-v${{ steps.dotenv.outputs.SHOMEI_PLUGIN_VERSION }}.jar" -P /tmp/besu/plugins | ||
- name: piece the package together to build the docker images | ||
shell: bash | ||
run: | | ||
cd linea-besu | ||
mv /tmp/besu ./ | ||
mv config/ genesis/ profiles/ besu/ | ||
tree . |
Oops, something went wrong.