From b59490c6507a58f87fdeaf27e3003d1a10a0cde1 Mon Sep 17 00:00:00 2001 From: naveen-consensys Date: Thu, 31 Oct 2024 13:17:11 -0700 Subject: [PATCH 01/16] Add CI pipeline to build image --- .github/workflows/build.yaml | 87 ++++++++++++++++++++++++++++++++++++ 1 file changed, 87 insertions(+) create mode 100644 .github/workflows/build.yaml diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 0000000..493fc67 --- /dev/null +++ b/.github/workflows/build.yaml @@ -0,0 +1,87 @@ +name: Build Image + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v1 + + - name: Install jq + run: sudo apt-get update && sudo apt-get install -y jq + + - name: Login to DockerHub + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKER_REPO_USER }} + password: ${{ secrets.DOCKER_REPO_TOKEN }} + + - name: Download and Prepare Artifacts + run: | + mkdir -p besu/plugins besu/profiles besu/config besu/genesis + curl -L "https://artifacts.consensys.net/public/linea-besu/raw/names/linea-besu.tar.gz/versions/24.10-delivery34/linea-besu-24.10-delivery34.tar.gz" | tar xz -C besu + curl -L "https://github.com/Consensys/linea-sequencer/releases/download/v0.1.4-test35/besu-sequencer-plugins-v0.1.4-test35.jar" -o besu/plugins/besu-sequencer-plugins-v0.1.4-test35.jar + curl -L "https://github.com/Consensys/besu-shomei-plugin/releases/download/v0.3.1/besu-shomei-plugin-v0.3.1.jar" -o besu/plugins/besu-shomei-plugin-v0.3.1.jar + curl -L "https://github.com/Consensys/linea-monorepo/releases/download/finalized-tag-updater-v0.0.1/finalized-tag-updater-v0.0.1.jar" -o besu/plugins/finalized-tag-updater-v0.0.1.jar + cp -r linea-besu/profiles besu/profiles + cp -r linea-besu/config besu/config + cp -r linea-besu/genesis besu/genesis + + - name: Define Artifact Versions + id: artifact-versions-devnet + run: | + linea_besu_version=$(jq -r '.modules[] | select(.name=="linea-besu") | .version' build-devnet.json) + linea_sequencer_version=$(jq -r '.modules[] | select(.name=="linea-sequencer") | .version' build-devnet.json) + finalized_tag_updater_version=$(jq -r '.modules[] | select(.name=="finalized-tag-updater") | .version' build-devnet.json) + + echo "::set-output name=linea_besu_version::$linea_besu_version" + echo "::set-output name=linea_sequencer_version::$linea_sequencer_version" + echo "::set-output name=finalized_tag_updater_version::$finalized_tag_updater_version" + + - name: Define Artifact Versions + id: artifact-versions-sepolia + run: | + linea_besu_version=$(jq -r '.modules[] | select(.name=="linea-besu") | .version' build-sepolia.json) + linea_sequencer_version=$(jq -r '.modules[] | select(.name=="linea-sequencer") | .version' build-sepolia.json) + finalized_tag_updater_version=$(jq -r '.modules[] | select(.name=="finalized-tag-updater") | .version' build-sepolia.json) + + echo "::set-output name=linea_besu_version::$linea_besu_version" + echo "::set-output name=linea_sequencer_version::$linea_sequencer_version" + echo "::set-output name=finalized_tag_updater_version::$finalized_tag_updater_version" + + - name: Define Artifact Versions + id: artifact-versions-mainnet + run: | + linea_besu_version=$(jq -r '.modules[] | select(.name=="linea-besu") | .version' build-mainnet.json) + linea_sequencer_version=$(jq -r '.modules[] | select(.name=="linea-sequencer") | .version' build-mainnet.json) + finalized_tag_updater_version=$(jq -r '.modules[] | select(.name=="finalized-tag-updater") | .version' build-mainnet.json) + + echo "::set-output name=linea_besu_version::$linea_besu_version" + echo "::set-output name=linea_sequencer_version::$linea_sequencer_version" + echo "::set-output name=finalized_tag_updater_version::$finalized_tag_updater_version" + + - name: Build Docker image + uses: docker/build-push-action@v2 + run: | + docker build . -t linea-besu-package:${{ steps.artifact-versions-devnet.outputs.linea_besu_version }}-${{ steps.artifact-versions-devnet.outputs.linea_sequencer_version }}-${{ steps.artifact-versions-devnet.outputs.finalized_tag_updater_version }} + docker build . -t linea-besu-package:${{ steps.artifact-versions-sepolia.outputs.linea_besu_version }}-${{ steps.artifact-versions-sepolia.outputs.linea_sequencer_version }}-${{ steps.artifact-versions-sepolia.outputs.finalized_tag_updater_version }} + docker build . -t linea-besu-package:${{ steps.artifact-versions-mainnet.outputs.linea_besu_version }}-${{ steps.artifact-versions-mainnet.outputs.linea_sequencer_version }}-${{ steps.artifact-versions-mainnet.outputs.finalized_tag_updater_version }} + + - name: Push Docker image + if: github.event_name == 'push' + run: | + docker push linea-besu-package:${{ steps.artifact-versions-devnet.outputs.linea_besu_version }}-${{ steps.artifact-versions-devnet.outputs.linea_sequencer_version }}-${{ steps.artifact-versions-devnet.outputs.finalized_tag_updater_version }} + docker push linea-besu-package:${{ steps.artifact-versions-sepolia.outputs.linea_besu_version }}-${{ steps.artifact-versions-sepolia.outputs.linea_sequencer_version }}-${{ steps.artifact-versions-sepolia.outputs.finalized_tag_updater_version }} + docker push linea-besu-package:${{ steps.artifact-versions-mainnet.outputs.linea_besu_version }}-${{ steps.artifact-versions-mainnet.outputs.linea_sequencer_version }}-${{ steps.artifact-versions-mainnet.outputs.finalized_tag_updater_version }} \ No newline at end of file From ea861a176f72d20f9cb234ebee50fa68217ae8ce Mon Sep 17 00:00:00 2001 From: naveen-consensys Date: Mon, 4 Nov 2024 07:30:35 -0800 Subject: [PATCH 02/16] Add CI pipeline for besu build file --- .github/workflows/build.yaml | 86 ++++++++++++++++++++++++++---------- 1 file changed, 63 insertions(+), 23 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 493fc67..112c4fa 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -28,19 +28,43 @@ jobs: username: ${{ secrets.DOCKER_REPO_USER }} password: ${{ secrets.DOCKER_REPO_TOKEN }} + - name: Check modified files + id: files + run: | + echo "FILES=$(git diff --name-only ${{ github.event.before }} ${{ github.sha }})" >> $GITHUB_ENV + - name: Download and Prepare Artifacts run: | - mkdir -p besu/plugins besu/profiles besu/config besu/genesis - curl -L "https://artifacts.consensys.net/public/linea-besu/raw/names/linea-besu.tar.gz/versions/24.10-delivery34/linea-besu-24.10-delivery34.tar.gz" | tar xz -C besu - curl -L "https://github.com/Consensys/linea-sequencer/releases/download/v0.1.4-test35/besu-sequencer-plugins-v0.1.4-test35.jar" -o besu/plugins/besu-sequencer-plugins-v0.1.4-test35.jar - curl -L "https://github.com/Consensys/besu-shomei-plugin/releases/download/v0.3.1/besu-shomei-plugin-v0.3.1.jar" -o besu/plugins/besu-shomei-plugin-v0.3.1.jar - curl -L "https://github.com/Consensys/linea-monorepo/releases/download/finalized-tag-updater-v0.0.1/finalized-tag-updater-v0.0.1.jar" -o besu/plugins/finalized-tag-updater-v0.0.1.jar - cp -r linea-besu/profiles besu/profiles - cp -r linea-besu/config besu/config - cp -r linea-besu/genesis besu/genesis - - - name: Define Artifact Versions + if [[ -n "${{ env.CHANGED_FILES }}" ]]; then + for file in $CHANGED_FILES; do + network=$(echo "$file" | sed -E 's/build-(.*)\.json/\1/') + mkdir -p besu/$network/plugins besu/$network/profiles besu/$network/config besu/$network/genesis + + jq -c '.modules[]' "$file" | while read -r module; do + type=$(echo "$module" | jq -r '.type') + name=$(echo "$module" | jq -r '.name') + url=$(echo "$module" | jq -r '.url') + version=$(echo "$module" | jq -r '.version') + outputDir=$(echo "$module" | jq -r '.outputDir // empty') + + case "$type" in + "extract") + curl -L "${url/\{version\}/$version}" | tar xz -C "besu/$network/${outputDir}" + ;; + "download") + curl -L "${url/\{version\}/$version}" -o "besu/$network/${outputDir}/$name-$version.jar" + ;; + "copy") + cp -r "$name" "besu/$network/${outputDir}" + ;; + esac + done + done + fi + + - name: Define Artifact Versions devnet id: artifact-versions-devnet + if: contains(env.FILES, 'build-devnet.json') run: | linea_besu_version=$(jq -r '.modules[] | select(.name=="linea-besu") | .version' build-devnet.json) linea_sequencer_version=$(jq -r '.modules[] | select(.name=="linea-sequencer") | .version' build-devnet.json) @@ -50,8 +74,9 @@ jobs: echo "::set-output name=linea_sequencer_version::$linea_sequencer_version" echo "::set-output name=finalized_tag_updater_version::$finalized_tag_updater_version" - - name: Define Artifact Versions + - name: Define Artifact Versions Sepolia id: artifact-versions-sepolia + if: contains(env.FILES, 'build-sepolia.json') run: | linea_besu_version=$(jq -r '.modules[] | select(.name=="linea-besu") | .version' build-sepolia.json) linea_sequencer_version=$(jq -r '.modules[] | select(.name=="linea-sequencer") | .version' build-sepolia.json) @@ -61,8 +86,9 @@ jobs: echo "::set-output name=linea_sequencer_version::$linea_sequencer_version" echo "::set-output name=finalized_tag_updater_version::$finalized_tag_updater_version" - - name: Define Artifact Versions + - name: Define Artifact Versions Mainnet id: artifact-versions-mainnet + if: contains(env.FILES, 'build-mainnet.json') run: | linea_besu_version=$(jq -r '.modules[] | select(.name=="linea-besu") | .version' build-mainnet.json) linea_sequencer_version=$(jq -r '.modules[] | select(.name=="linea-sequencer") | .version' build-mainnet.json) @@ -72,16 +98,30 @@ jobs: echo "::set-output name=linea_sequencer_version::$linea_sequencer_version" echo "::set-output name=finalized_tag_updater_version::$finalized_tag_updater_version" - - name: Build Docker image + - name: Build and push Docker image for Devnet + if: contains(env.FILES, 'build-devnet.json') uses: docker/build-push-action@v2 - run: | - docker build . -t linea-besu-package:${{ steps.artifact-versions-devnet.outputs.linea_besu_version }}-${{ steps.artifact-versions-devnet.outputs.linea_sequencer_version }}-${{ steps.artifact-versions-devnet.outputs.finalized_tag_updater_version }} - docker build . -t linea-besu-package:${{ steps.artifact-versions-sepolia.outputs.linea_besu_version }}-${{ steps.artifact-versions-sepolia.outputs.linea_sequencer_version }}-${{ steps.artifact-versions-sepolia.outputs.finalized_tag_updater_version }} - docker build . -t linea-besu-package:${{ steps.artifact-versions-mainnet.outputs.linea_besu_version }}-${{ steps.artifact-versions-mainnet.outputs.linea_sequencer_version }}-${{ steps.artifact-versions-mainnet.outputs.finalized_tag_updater_version }} + with: + context: . + file: ./Dockerfile + push: true + tags: | + linea-besu-package:${{ steps.artifact-versions-devnet.outputs.linea_besu_version }}-${{ steps.artifact-versions-devnet.outputs.linea_sequencer_version }}-${{ steps.artifact-versions-devnet.outputs.finalized_tag_updater_version }} - - name: Push Docker image - if: github.event_name == 'push' - run: | - docker push linea-besu-package:${{ steps.artifact-versions-devnet.outputs.linea_besu_version }}-${{ steps.artifact-versions-devnet.outputs.linea_sequencer_version }}-${{ steps.artifact-versions-devnet.outputs.finalized_tag_updater_version }} - docker push linea-besu-package:${{ steps.artifact-versions-sepolia.outputs.linea_besu_version }}-${{ steps.artifact-versions-sepolia.outputs.linea_sequencer_version }}-${{ steps.artifact-versions-sepolia.outputs.finalized_tag_updater_version }} - docker push linea-besu-package:${{ steps.artifact-versions-mainnet.outputs.linea_besu_version }}-${{ steps.artifact-versions-mainnet.outputs.linea_sequencer_version }}-${{ steps.artifact-versions-mainnet.outputs.finalized_tag_updater_version }} \ No newline at end of file + - name: Build and push Docker image for Sepolia + if: contains(env.FILES, 'build-sepolia.json') + uses: docker/build-push-action@v2 + with: + context: . + file: ./Dockerfile + push: true + tags: | + linea-besu-package:${{ steps.artifact-versions-sepolia.outputs.linea_besu_version }}-${{ steps.artifact-versions-sepolia.outputs.linea_sequencer_version }}-${{ steps.artifact-versions-sepolia.outputs.finalized_tag_updater_version }} + + - name: Build and push Docker image for Mainnet + if: contains(env.FILES, 'build-mainnet.json') + uses: docker/build-push-action@v2 + with: + push: true + tags: | + linea-besu-package:${{ steps.artifact-versions-mainnet.outputs.linea_besu_version }}-${{ steps.artifact-versions-mainnet.outputs.linea_sequencer_version }}-${{ steps.artifact-versions-mainnet.outputs.finalized_tag_updater_version }} \ No newline at end of file From 5acdf2ff639a50bfb503bddfae543057ad0d7def Mon Sep 17 00:00:00 2001 From: naveen-consensys Date: Mon, 4 Nov 2024 07:35:09 -0800 Subject: [PATCH 03/16] wip --- .github/workflows/build.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 112c4fa..b48985c 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -25,8 +25,8 @@ jobs: - name: Login to DockerHub uses: docker/login-action@v1 with: - username: ${{ secrets.DOCKER_REPO_USER }} - password: ${{ secrets.DOCKER_REPO_TOKEN }} + username: ${{ secrets.DOCKER_USER_RW }} + password: ${{ secrets.DOCKER_PAT_RW }} - name: Check modified files id: files From d89fcf469ddd025be306527b9962dcfd2f1d4351 Mon Sep 17 00:00:00 2001 From: naveen-consensys Date: Mon, 4 Nov 2024 07:48:20 -0800 Subject: [PATCH 04/16] test build-devnet file --- linea-besu/build-devnet.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linea-besu/build-devnet.json b/linea-besu/build-devnet.json index 1bd58f5..08374c0 100644 --- a/linea-besu/build-devnet.json +++ b/linea-besu/build-devnet.json @@ -6,7 +6,7 @@ "type": "extract", "name": "linea-besu", "url": "https://artifacts.consensys.net/public/linea-besu/raw/names/linea-besu.tar.gz/versions/{version}/linea-besu-{version}.tar.gz", - "version": "24.10-delivery34" + "version": "24.10-delivery35" }, { "type": "download", From 8a9ce8344393f2b24f59850603a7a92e1878be8e Mon Sep 17 00:00:00 2001 From: naveen-consensys Date: Mon, 4 Nov 2024 08:45:32 -0800 Subject: [PATCH 05/16] wip --- .github/workflows/build.yaml | 103 +++++++---------------------------- 1 file changed, 20 insertions(+), 83 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index b48985c..0df9e7d 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -31,97 +31,34 @@ jobs: - name: Check modified files id: files run: | - echo "FILES=$(git diff --name-only ${{ github.event.before }} ${{ github.sha }})" >> $GITHUB_ENV + echo "CHANGED_FILES=$(git diff --name-only ${{ github.event.before }} ${{ github.sha }} | grep 'build-.*\.json' | xargs)" >> $GITHUB_ENV - name: Download and Prepare Artifacts run: | - if [[ -n "${{ env.CHANGED_FILES }}" ]]; then - for file in $CHANGED_FILES; do - network=$(echo "$file" | sed -E 's/build-(.*)\.json/\1/') - mkdir -p besu/$network/plugins besu/$network/profiles besu/$network/config besu/$network/genesis - - jq -c '.modules[]' "$file" | while read -r module; do - type=$(echo "$module" | jq -r '.type') - name=$(echo "$module" | jq -r '.name') - url=$(echo "$module" | jq -r '.url') - version=$(echo "$module" | jq -r '.version') - outputDir=$(echo "$module" | jq -r '.outputDir // empty') - - case "$type" in - "extract") - curl -L "${url/\{version\}/$version}" | tar xz -C "besu/$network/${outputDir}" - ;; - "download") - curl -L "${url/\{version\}/$version}" -o "besu/$network/${outputDir}/$name-$version.jar" - ;; - "copy") - cp -r "$name" "besu/$network/${outputDir}" - ;; - esac - done - done - fi + CONFIG_FILE="build-${{ matrix.environment }}.json" + if echo "${{ env.CHANGED_FILES }}" | grep -q "$CONFIG_FILE"; then + mkdir -p besu/${{ matrix.environment }}/plugins besu/${{ matrix.environment }}/profiles besu/${{ matrix.environment }}/config besu/${{ matrix.environment }}/genesis + # Your existing jq and curl commands adjusted for dynamic paths... - - name: Define Artifact Versions devnet - id: artifact-versions-devnet - if: contains(env.FILES, 'build-devnet.json') + - name: Define Artifact Versions + id: artifact-versions run: | - linea_besu_version=$(jq -r '.modules[] | select(.name=="linea-besu") | .version' build-devnet.json) - linea_sequencer_version=$(jq -r '.modules[] | select(.name=="linea-sequencer") | .version' build-devnet.json) - finalized_tag_updater_version=$(jq -r '.modules[] | select(.name=="finalized-tag-updater") | .version' build-devnet.json) - - echo "::set-output name=linea_besu_version::$linea_besu_version" - echo "::set-output name=linea_sequencer_version::$linea_sequencer_version" - echo "::set-output name=finalized_tag_updater_version::$finalized_tag_updater_version" - - - name: Define Artifact Versions Sepolia - id: artifact-versions-sepolia - if: contains(env.FILES, 'build-sepolia.json') - run: | - linea_besu_version=$(jq -r '.modules[] | select(.name=="linea-besu") | .version' build-sepolia.json) - linea_sequencer_version=$(jq -r '.modules[] | select(.name=="linea-sequencer") | .version' build-sepolia.json) - finalized_tag_updater_version=$(jq -r '.modules[] | select(.name=="finalized-tag-updater") | .version' build-sepolia.json) - - echo "::set-output name=linea_besu_version::$linea_besu_version" - echo "::set-output name=linea_sequencer_version::$linea_sequencer_version" - echo "::set-output name=finalized_tag_updater_version::$finalized_tag_updater_version" - - - name: Define Artifact Versions Mainnet - id: artifact-versions-mainnet - if: contains(env.FILES, 'build-mainnet.json') - run: | - linea_besu_version=$(jq -r '.modules[] | select(.name=="linea-besu") | .version' build-mainnet.json) - linea_sequencer_version=$(jq -r '.modules[] | select(.name=="linea-sequencer") | .version' build-mainnet.json) - finalized_tag_updater_version=$(jq -r '.modules[] | select(.name=="finalized-tag-updater") | .version' build-mainnet.json) - - echo "::set-output name=linea_besu_version::$linea_besu_version" - echo "::set-output name=linea_sequencer_version::$linea_sequencer_version" - echo "::set-output name=finalized_tag_updater_version::$finalized_tag_updater_version" - - - name: Build and push Docker image for Devnet - if: contains(env.FILES, 'build-devnet.json') - uses: docker/build-push-action@v2 - with: - context: . - file: ./Dockerfile - push: true - tags: | - linea-besu-package:${{ steps.artifact-versions-devnet.outputs.linea_besu_version }}-${{ steps.artifact-versions-devnet.outputs.linea_sequencer_version }}-${{ steps.artifact-versions-devnet.outputs.finalized_tag_updater_version }} - - - name: Build and push Docker image for Sepolia - if: contains(env.FILES, 'build-sepolia.json') + CONFIG_FILE="build-${{ matrix.environment }}.json" + if echo "${{ env.CHANGED_FILES }}" | grep -q "$CONFIG_FILE"; then + linea_besu_version=$(jq -r '.modules[] | select(.name=="linea-besu") | .version' $CONFIG_FILE) + linea_sequencer_version=$(jq -r '.modules[] | select(.name=="linea-sequencer") | .version' $CONFIG_FILE) + finalized_tag_updater_version=$(jq -r '.modules[] | select(.name=="finalized-tag-updater") | .version' $CONFIG_FILE) + + echo "::set-output name=linea_besu_version::$linea_besu_version" + echo "::set-output name=linea_sequencer_version::$linea_sequencer_version" + echo "::set-output name=finalized_tag_updater_version::$finalized_tag_updater_version" + + - name: Build and push Docker image + if: contains(env.CHANGED_FILES, 'build-${{ matrix.environment }}.json') uses: docker/build-push-action@v2 with: context: . file: ./Dockerfile push: true tags: | - linea-besu-package:${{ steps.artifact-versions-sepolia.outputs.linea_besu_version }}-${{ steps.artifact-versions-sepolia.outputs.linea_sequencer_version }}-${{ steps.artifact-versions-sepolia.outputs.finalized_tag_updater_version }} - - - name: Build and push Docker image for Mainnet - if: contains(env.FILES, 'build-mainnet.json') - uses: docker/build-push-action@v2 - with: - push: true - tags: | - linea-besu-package:${{ steps.artifact-versions-mainnet.outputs.linea_besu_version }}-${{ steps.artifact-versions-mainnet.outputs.linea_sequencer_version }}-${{ steps.artifact-versions-mainnet.outputs.finalized_tag_updater_version }} \ No newline at end of file + linea-besu-package:${{ matrix.environment }}-${{ steps.artifact-versions.outputs.linea_besu_version }}-${{ steps.artifact-versions.outputs.linea_sequencer_version }}-${{ steps.artifact-versions.outputs.finalized_tag_updater_version }} \ No newline at end of file From dab94da5947c93e11d147c5e7c20faba393cf76b Mon Sep 17 00:00:00 2001 From: naveen-consensys Date: Mon, 4 Nov 2024 08:59:48 -0800 Subject: [PATCH 06/16] wip --- .github/workflows/build.yaml | 33 +++++++++++++++++++++++++++++++-- 1 file changed, 31 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 0df9e7d..a468c13 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -35,10 +35,37 @@ jobs: - name: Download and Prepare Artifacts run: | + if [[ -z "${{ env.CHANGED_FILES }}" ]]; then + echo "No changed files detected." + exit 0 + fi + CONFIG_FILE="build-${{ matrix.environment }}.json" if echo "${{ env.CHANGED_FILES }}" | grep -q "$CONFIG_FILE"; then mkdir -p besu/${{ matrix.environment }}/plugins besu/${{ matrix.environment }}/profiles besu/${{ matrix.environment }}/config besu/${{ matrix.environment }}/genesis - # Your existing jq and curl commands adjusted for dynamic paths... + jq -c '.modules[]' "$file" | while read -r module; do + type=$(echo "$module" | jq -r '.type') + name=$(echo "$module" | jq -r '.name') + url=$(echo "$module" | jq -r '.url') + version=$(echo "$module" | jq -r '.version') + outputDir=$(echo "$module" | jq -r '.outputDir // empty') + + case "$type" in + "extract") + curl -L "${url/\{version\}/$version}" | tar xz -C "besu/$network/${outputDir}" + ;; + "download") + curl -L "${url/\{version\}/$version}" -o "besu/$network/${outputDir}/$name-$version.jar" + ;; + "copy") + cp -r "$name" "besu/$network/${outputDir}" + ;; + esac + done + else + echo "$CONFIG_FILE not modified." + fi + shell: /usr/bin/bash -e {0} - name: Define Artifact Versions id: artifact-versions @@ -61,4 +88,6 @@ jobs: file: ./Dockerfile push: true tags: | - linea-besu-package:${{ matrix.environment }}-${{ steps.artifact-versions.outputs.linea_besu_version }}-${{ steps.artifact-versions.outputs.linea_sequencer_version }}-${{ steps.artifact-versions.outputs.finalized_tag_updater_version }} \ No newline at end of file + linea-besu-package:${{ matrix.environment }}-${{ steps.artifact-versions.outputs.linea_besu_version }}-${{ steps.artifact-versions.outputs.linea_sequencer_version }}-${{ steps.artifact-versions.outputs.finalized_tag_updater_version }} + + \ No newline at end of file From 267eb87be74e4db769cfdb91e35a3bbaeb7ec23d Mon Sep 17 00:00:00 2001 From: naveen-consensys Date: Mon, 4 Nov 2024 09:13:45 -0800 Subject: [PATCH 07/16] wip --- .github/workflows/build.yaml | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index a468c13..6aa7914 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -31,7 +31,7 @@ jobs: - name: Check modified files id: files run: | - echo "CHANGED_FILES=$(git diff --name-only ${{ github.event.before }} ${{ github.sha }} | grep 'build-.*\.json' | xargs)" >> $GITHUB_ENV + echo "CHANGED_FILES=$(git diff --name-only ${{ github.event.before }} ${{ github.sha }} 'linea-besu/' | grep 'build-.*\.json' | xargs)" >> $GITHUB_ENV - name: Download and Prepare Artifacts run: | @@ -40,10 +40,10 @@ jobs: exit 0 fi - CONFIG_FILE="build-${{ matrix.environment }}.json" - if echo "${{ env.CHANGED_FILES }}" | grep -q "$CONFIG_FILE"; then + CONFIG_FILE="linea-besu/build-${{ matrix.environment }}.json" + if echo "${{ env.CHANGED_FILES }}" | grep -q "linea-besu/build-${{ matrix.environment }}.json"; then mkdir -p besu/${{ matrix.environment }}/plugins besu/${{ matrix.environment }}/profiles besu/${{ matrix.environment }}/config besu/${{ matrix.environment }}/genesis - jq -c '.modules[]' "$file" | while read -r module; do + jq -c '.modules[]' "$CONFIG_FILE" | while read -r module; do type=$(echo "$module" | jq -r '.type') name=$(echo "$module" | jq -r '.name') url=$(echo "$module" | jq -r '.url') @@ -52,13 +52,13 @@ jobs: case "$type" in "extract") - curl -L "${url/\{version\}/$version}" | tar xz -C "besu/$network/${outputDir}" + curl -L "${url/\{version\}/$version}" | tar xz -C "besu/${{ matrix.environment }}/${outputDir}" ;; "download") - curl -L "${url/\{version\}/$version}" -o "besu/$network/${outputDir}/$name-$version.jar" + curl -L "${url/\{version\}/$version}" -o "besu/${{ matrix.environment }}/${outputDir}/$name-$version.jar" ;; "copy") - cp -r "$name" "besu/$network/${outputDir}" + cp -r "$name" "besu/${{ matrix.environment }}/${outputDir}" ;; esac done @@ -70,18 +70,18 @@ jobs: - name: Define Artifact Versions id: artifact-versions run: | - CONFIG_FILE="build-${{ matrix.environment }}.json" - if echo "${{ env.CHANGED_FILES }}" | grep -q "$CONFIG_FILE"; then - linea_besu_version=$(jq -r '.modules[] | select(.name=="linea-besu") | .version' $CONFIG_FILE) - linea_sequencer_version=$(jq -r '.modules[] | select(.name=="linea-sequencer") | .version' $CONFIG_FILE) - finalized_tag_updater_version=$(jq -r '.modules[] | select(.name=="finalized-tag-updater") | .version' $CONFIG_FILE) + CONFIG_FILE="linea-besu/build-${{ matrix.environment }}.json" + if echo "${{ env.CHANGED_FILES }}" | grep -q "linea-besu/build-${{ matrix.environment }}.json"; then + linea_besu_version=$(jq -r '.modules[] | select(.name=="linea-besu") | .version' "$CONFIG_FILE") + linea_sequencer_version=$(jq -r '.modules[] | select(.name=="linea-sequencer") | .version' "$CONFIG_FILE") + finalized_tag_updater_version=$(jq -r '.modules[] | select(.name=="finalized-tag-updater") | .version' "$CONFIG_FILE") echo "::set-output name=linea_besu_version::$linea_besu_version" echo "::set-output name=linea_sequencer_version::$linea_sequencer_version" echo "::set-output name=finalized_tag_updater_version::$finalized_tag_updater_version" - name: Build and push Docker image - if: contains(env.CHANGED_FILES, 'build-${{ matrix.environment }}.json') + if: contains(env.CHANGED_FILES, 'linea-besu/build-${{ matrix.environment }}.json') uses: docker/build-push-action@v2 with: context: . @@ -89,5 +89,4 @@ jobs: push: true tags: | linea-besu-package:${{ matrix.environment }}-${{ steps.artifact-versions.outputs.linea_besu_version }}-${{ steps.artifact-versions.outputs.linea_sequencer_version }}-${{ steps.artifact-versions.outputs.finalized_tag_updater_version }} - - \ No newline at end of file + \ No newline at end of file From 16a558c3e29eb81898e35dc972760330bc091d01 Mon Sep 17 00:00:00 2001 From: naveen-consensys Date: Mon, 4 Nov 2024 09:20:13 -0800 Subject: [PATCH 08/16] wip --- .github/workflows/build.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 6aa7914..a50c55f 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -31,8 +31,11 @@ jobs: - name: Check modified files id: files run: | - echo "CHANGED_FILES=$(git diff --name-only ${{ github.event.before }} ${{ github.sha }} 'linea-besu/' | grep 'build-.*\.json' | xargs)" >> $GITHUB_ENV - + git diff --name-only HEAD~1 HEAD + git diff --name-only HEAD~1 HEAD | grep 'linea-besu/build-.*\.json' + CHANGED_FILES=$(git diff --name-only HEAD~1 HEAD | grep 'linea-besu/build-.*\.json' | xargs) + echo "Detected changed files: $CHANGED_FILES" + echo "CHANGED_FILES=$CHANGED_FILES" >> $GITHUB_ENV - name: Download and Prepare Artifacts run: | if [[ -z "${{ env.CHANGED_FILES }}" ]]; then From 2baccd46c20bf98013e9a32e705f91f9bfe63b38 Mon Sep 17 00:00:00 2001 From: naveen-consensys Date: Mon, 4 Nov 2024 09:26:00 -0800 Subject: [PATCH 09/16] wip --- .github/workflows/build.yaml | 80 ++++++++++++++++-------------------- 1 file changed, 35 insertions(+), 45 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index a50c55f..25ac454 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -28,60 +28,50 @@ jobs: username: ${{ secrets.DOCKER_USER_RW }} password: ${{ secrets.DOCKER_PAT_RW }} - - name: Check modified files - id: files - run: | - git diff --name-only HEAD~1 HEAD - git diff --name-only HEAD~1 HEAD | grep 'linea-besu/build-.*\.json' - CHANGED_FILES=$(git diff --name-only HEAD~1 HEAD | grep 'linea-besu/build-.*\.json' | xargs) - echo "Detected changed files: $CHANGED_FILES" - echo "CHANGED_FILES=$CHANGED_FILES" >> $GITHUB_ENV + - name: Get changed files + id: changed-files + uses: tj-actions/changed-files@v40 + with: + files: | + linea-besu/build-*.json + - name: Download and Prepare Artifacts + if: steps.changed-files.outputs.any_changed == 'true' run: | - if [[ -z "${{ env.CHANGED_FILES }}" ]]; then - echo "No changed files detected." - exit 0 - fi - CONFIG_FILE="linea-besu/build-${{ matrix.environment }}.json" - if echo "${{ env.CHANGED_FILES }}" | grep -q "linea-besu/build-${{ matrix.environment }}.json"; then - mkdir -p besu/${{ matrix.environment }}/plugins besu/${{ matrix.environment }}/profiles besu/${{ matrix.environment }}/config besu/${{ matrix.environment }}/genesis - jq -c '.modules[]' "$CONFIG_FILE" | while read -r module; do - type=$(echo "$module" | jq -r '.type') - name=$(echo "$module" | jq -r '.name') - url=$(echo "$module" | jq -r '.url') - version=$(echo "$module" | jq -r '.version') - outputDir=$(echo "$module" | jq -r '.outputDir // empty') - - case "$type" in - "extract") - curl -L "${url/\{version\}/$version}" | tar xz -C "besu/${{ matrix.environment }}/${outputDir}" - ;; - "download") - curl -L "${url/\{version\}/$version}" -o "besu/${{ matrix.environment }}/${outputDir}/$name-$version.jar" - ;; - "copy") - cp -r "$name" "besu/${{ matrix.environment }}/${outputDir}" - ;; - esac - done - else - echo "$CONFIG_FILE not modified." - fi + mkdir -p besu/${{ matrix.environment }}/plugins besu/${{ matrix.environment }}/profiles besu/${{ matrix.environment }}/config besu/${{ matrix.environment }}/genesis + jq -c '.modules[]' "$CONFIG_FILE" | while read -r module; do + type=$(echo "$module" | jq -r '.type') + name=$(echo "$module" | jq -r '.name') + url=$(echo "$module" | jq -r '.url') + version=$(echo "$module" | jq -r '.version') + outputDir=$(echo "$module" | jq -r '.outputDir // empty') + + case "$type" in + "extract") + curl -L "${url/\{version\}/$version}" | tar xz -C "besu/${{ matrix.environment }}/${outputDir}" + ;; + "download") + curl -L "${url/\{version\}/$version}" -o "besu/${{ matrix.environment }}/${outputDir}/$name-$version.jar" + ;; + "copy") + cp -r "$name" "besu/${{ matrix.environment }}/${outputDir}" + ;; + esac + done shell: /usr/bin/bash -e {0} - name: Define Artifact Versions - id: artifact-versions + if: steps.changed-files.outputs.any_changed == 'true' run: | CONFIG_FILE="linea-besu/build-${{ matrix.environment }}.json" - if echo "${{ env.CHANGED_FILES }}" | grep -q "linea-besu/build-${{ matrix.environment }}.json"; then - linea_besu_version=$(jq -r '.modules[] | select(.name=="linea-besu") | .version' "$CONFIG_FILE") - linea_sequencer_version=$(jq -r '.modules[] | select(.name=="linea-sequencer") | .version' "$CONFIG_FILE") - finalized_tag_updater_version=$(jq -r '.modules[] | select(.name=="finalized-tag-updater") | .version' "$CONFIG_FILE") + linea_besu_version=$(jq -r '.modules[] | select(.name=="linea-besu") | .version' "$CONFIG_FILE") + linea_sequencer_version=$(jq -r '.modules[] | select(.name=="linea-sequencer") | .version' "$CONFIG_FILE") + finalized_tag_updater_version=$(jq -r '.modules[] | select(.name=="finalized-tag-updater") | .version' "$CONFIG_FILE") - echo "::set-output name=linea_besu_version::$linea_besu_version" - echo "::set-output name=linea_sequencer_version::$linea_sequencer_version" - echo "::set-output name=finalized_tag_updater_version::$finalized_tag_updater_version" + echo "::set-output name=linea_besu_version::$linea_besu_version" + echo "::set-output name=linea_sequencer_version::$linea_sequencer_version" + echo "::set-output name=finalized_tag_updater_version::$finalized_tag_updater_version" - name: Build and push Docker image if: contains(env.CHANGED_FILES, 'linea-besu/build-${{ matrix.environment }}.json') From 72c29d55a294d4e3e5012ad81c2446ff356bcdfd Mon Sep 17 00:00:00 2001 From: naveen-consensys Date: Mon, 4 Nov 2024 09:31:57 -0800 Subject: [PATCH 10/16] wip --- .github/workflows/build.yaml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 25ac454..4fa3795 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -11,7 +11,9 @@ on: jobs: build: runs-on: ubuntu-latest - + strategy: + matrix: + environment: ['devnet', 'sepolia', 'mainnet'] steps: - name: Checkout repository uses: actions/checkout@v2 @@ -36,7 +38,6 @@ jobs: linea-besu/build-*.json - name: Download and Prepare Artifacts - if: steps.changed-files.outputs.any_changed == 'true' run: | CONFIG_FILE="linea-besu/build-${{ matrix.environment }}.json" mkdir -p besu/${{ matrix.environment }}/plugins besu/${{ matrix.environment }}/profiles besu/${{ matrix.environment }}/config besu/${{ matrix.environment }}/genesis @@ -62,24 +63,23 @@ jobs: shell: /usr/bin/bash -e {0} - name: Define Artifact Versions - if: steps.changed-files.outputs.any_changed == 'true' + id: artifact-versions run: | CONFIG_FILE="linea-besu/build-${{ matrix.environment }}.json" linea_besu_version=$(jq -r '.modules[] | select(.name=="linea-besu") | .version' "$CONFIG_FILE") linea_sequencer_version=$(jq -r '.modules[] | select(.name=="linea-sequencer") | .version' "$CONFIG_FILE") finalized_tag_updater_version=$(jq -r '.modules[] | select(.name=="finalized-tag-updater") | .version' "$CONFIG_FILE") - echo "::set-output name=linea_besu_version::$linea_besu_version" - echo "::set-output name=linea_sequencer_version::$linea_sequencer_version" - echo "::set-output name=finalized_tag_updater_version::$finalized_tag_updater_version" + echo "linea_besu_version=$linea_besu_version" >> $GITHUB_ENV + echo "linea_sequencer_version=$linea_sequencer_version" >> $GITHUB_ENV + echo "finalized_tag_updater_version=$finalized_tag_updater_version" >> $GITHUB_ENV - name: Build and push Docker image - if: contains(env.CHANGED_FILES, 'linea-besu/build-${{ matrix.environment }}.json') + if: steps.changed-files.outputs.any_changed == 'true' uses: docker/build-push-action@v2 with: context: . file: ./Dockerfile push: true tags: | - linea-besu-package:${{ matrix.environment }}-${{ steps.artifact-versions.outputs.linea_besu_version }}-${{ steps.artifact-versions.outputs.linea_sequencer_version }}-${{ steps.artifact-versions.outputs.finalized_tag_updater_version }} - \ No newline at end of file + linea-besu-package:${{ matrix.environment }}-${{ env.linea_besu_version }}-${{ env.linea_sequencer_version }}-${{ env.finalized_tag_updater_version }} \ No newline at end of file From 34f811674513ed7f82953297c8f9320ed0853a87 Mon Sep 17 00:00:00 2001 From: naveen-consensys Date: Mon, 4 Nov 2024 09:47:15 -0800 Subject: [PATCH 11/16] wip --- .github/workflows/build.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 4fa3795..125aaaf 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -17,6 +17,8 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v2 + with: + fetch-depth: 0 - name: Set up Docker Buildx uses: docker/setup-buildx-action@v1 From 2d2b6ba0b915a4222a28381985e61696caeacdba Mon Sep 17 00:00:00 2001 From: naveen-consensys Date: Mon, 4 Nov 2024 10:01:30 -0800 Subject: [PATCH 12/16] wip --- .github/workflows/build.yaml | 46 ++++++++++++++++++------------------ 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 125aaaf..4b4a594 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -39,30 +39,30 @@ jobs: files: | linea-besu/build-*.json - - name: Download and Prepare Artifacts - run: | - CONFIG_FILE="linea-besu/build-${{ matrix.environment }}.json" - mkdir -p besu/${{ matrix.environment }}/plugins besu/${{ matrix.environment }}/profiles besu/${{ matrix.environment }}/config besu/${{ matrix.environment }}/genesis - jq -c '.modules[]' "$CONFIG_FILE" | while read -r module; do - type=$(echo "$module" | jq -r '.type') - name=$(echo "$module" | jq -r '.name') - url=$(echo "$module" | jq -r '.url') - version=$(echo "$module" | jq -r '.version') - outputDir=$(echo "$module" | jq -r '.outputDir // empty') + # - name: Download and Prepare Artifacts + # run: | + # CONFIG_FILE="linea-besu/build-${{ matrix.environment }}.json" + # mkdir -p besu/${{ matrix.environment }}/plugins besu/${{ matrix.environment }}/profiles besu/${{ matrix.environment }}/config besu/${{ matrix.environment }}/genesis + # jq -c '.modules[]' "$CONFIG_FILE" | while read -r module; do + # type=$(echo "$module" | jq -r '.type') + # name=$(echo "$module" | jq -r '.name') + # url=$(echo "$module" | jq -r '.url') + # version=$(echo "$module" | jq -r '.version') + # outputDir=$(echo "$module" | jq -r '.outputDir // empty') - case "$type" in - "extract") - curl -L "${url/\{version\}/$version}" | tar xz -C "besu/${{ matrix.environment }}/${outputDir}" - ;; - "download") - curl -L "${url/\{version\}/$version}" -o "besu/${{ matrix.environment }}/${outputDir}/$name-$version.jar" - ;; - "copy") - cp -r "$name" "besu/${{ matrix.environment }}/${outputDir}" - ;; - esac - done - shell: /usr/bin/bash -e {0} + # case "$type" in + # "extract") + # curl -L "${url/\{version\}/$version}" | tar xz -C "besu/${{ matrix.environment }}/${outputDir}" + # ;; + # "download") + # curl -L "${url/\{version\}/$version}" -o "besu/${{ matrix.environment }}/${outputDir}/$name-$version.jar" + # ;; + # "copy") + # cp -r "$name" "besu/${{ matrix.environment }}/${outputDir}" + # ;; + # esac + # done + # shell: /usr/bin/bash -e {0} - name: Define Artifact Versions id: artifact-versions From 9a0a82946a52bee34638be7c05f46f88c60c0cb4 Mon Sep 17 00:00:00 2001 From: naveen-consensys Date: Mon, 4 Nov 2024 10:05:47 -0800 Subject: [PATCH 13/16] wip --- .github/workflows/build.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 4b4a594..e3cedad 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -81,7 +81,7 @@ jobs: uses: docker/build-push-action@v2 with: context: . - file: ./Dockerfile + file: docker/Dockerfile push: true tags: | linea-besu-package:${{ matrix.environment }}-${{ env.linea_besu_version }}-${{ env.linea_sequencer_version }}-${{ env.finalized_tag_updater_version }} \ No newline at end of file From d1ef62d1c82f7a474fe40d6f1ff543e9f5470a79 Mon Sep 17 00:00:00 2001 From: naveen-consensys Date: Tue, 5 Nov 2024 16:55:40 -0800 Subject: [PATCH 14/16] wip --- .github/workflows/build.yaml | 37 ++++++++++-------------------------- 1 file changed, 10 insertions(+), 27 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index e3cedad..0e7dd0f 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -39,31 +39,6 @@ jobs: files: | linea-besu/build-*.json - # - name: Download and Prepare Artifacts - # run: | - # CONFIG_FILE="linea-besu/build-${{ matrix.environment }}.json" - # mkdir -p besu/${{ matrix.environment }}/plugins besu/${{ matrix.environment }}/profiles besu/${{ matrix.environment }}/config besu/${{ matrix.environment }}/genesis - # jq -c '.modules[]' "$CONFIG_FILE" | while read -r module; do - # type=$(echo "$module" | jq -r '.type') - # name=$(echo "$module" | jq -r '.name') - # url=$(echo "$module" | jq -r '.url') - # version=$(echo "$module" | jq -r '.version') - # outputDir=$(echo "$module" | jq -r '.outputDir // empty') - - # case "$type" in - # "extract") - # curl -L "${url/\{version\}/$version}" | tar xz -C "besu/${{ matrix.environment }}/${outputDir}" - # ;; - # "download") - # curl -L "${url/\{version\}/$version}" -o "besu/${{ matrix.environment }}/${outputDir}/$name-$version.jar" - # ;; - # "copy") - # cp -r "$name" "besu/${{ matrix.environment }}/${outputDir}" - # ;; - # esac - # done - # shell: /usr/bin/bash -e {0} - - name: Define Artifact Versions id: artifact-versions run: | @@ -71,11 +46,19 @@ jobs: linea_besu_version=$(jq -r '.modules[] | select(.name=="linea-besu") | .version' "$CONFIG_FILE") linea_sequencer_version=$(jq -r '.modules[] | select(.name=="linea-sequencer") | .version' "$CONFIG_FILE") finalized_tag_updater_version=$(jq -r '.modules[] | select(.name=="finalized-tag-updater") | .version' "$CONFIG_FILE") - + echo "linea_besu_version=$linea_besu_version" >> $GITHUB_ENV echo "linea_sequencer_version=$linea_sequencer_version" >> $GITHUB_ENV echo "finalized_tag_updater_version=$finalized_tag_updater_version" >> $GITHUB_ENV - + + - name: download and untar the linea-besu archive + run: | + cd /tmp/ + echo "downloading linea-besu: ${{ env.linea_besu_version }}" + wget -nv "https://artifacts.consensys.net/public/linea-besu/raw/names/linea-besu.tar.gz/versions/${{ env.linea_besu_version }}/linea-besu-${{ env.linea_besu_version }}.tar.gz" + tar -xvf linea-besu-${{ env.linea_besu_version }}.tar.gz + mv /tmp/linea-besu-${{ env.linea_besu_version }} /tmp/besu + - name: Build and push Docker image if: steps.changed-files.outputs.any_changed == 'true' uses: docker/build-push-action@v2 From 5c670dca88ab099e72ff68f02b72e4cae9875261 Mon Sep 17 00:00:00 2001 From: naveen-consensys Date: Tue, 5 Nov 2024 17:01:01 -0800 Subject: [PATCH 15/16] wip --- .github/workflows/build.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 0e7dd0f..e465d40 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -57,7 +57,7 @@ jobs: echo "downloading linea-besu: ${{ env.linea_besu_version }}" wget -nv "https://artifacts.consensys.net/public/linea-besu/raw/names/linea-besu.tar.gz/versions/${{ env.linea_besu_version }}/linea-besu-${{ env.linea_besu_version }}.tar.gz" tar -xvf linea-besu-${{ env.linea_besu_version }}.tar.gz - mv /tmp/linea-besu-${{ env.linea_besu_version }} /tmp/besu + mv /tmp/linea-besu-${{ env.linea_besu_version }} /opt/besu - name: Build and push Docker image if: steps.changed-files.outputs.any_changed == 'true' From 7bb642f6886657fdecad586efa19cbd582cbcde2 Mon Sep 17 00:00:00 2001 From: naveen-consensys Date: Tue, 5 Nov 2024 17:09:18 -0800 Subject: [PATCH 16/16] wip --- .github/workflows/build.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index e465d40..1ecd594 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -57,7 +57,9 @@ jobs: echo "downloading linea-besu: ${{ env.linea_besu_version }}" wget -nv "https://artifacts.consensys.net/public/linea-besu/raw/names/linea-besu.tar.gz/versions/${{ env.linea_besu_version }}/linea-besu-${{ env.linea_besu_version }}.tar.gz" tar -xvf linea-besu-${{ env.linea_besu_version }}.tar.gz - mv /tmp/linea-besu-${{ env.linea_besu_version }} /opt/besu + mkdir -p /opt/besu + mv /tmp/linea-besu-${{ env.linea_besu_version }}/* /opt/besu + echo "moved to /opt/besu" - name: Build and push Docker image if: steps.changed-files.outputs.any_changed == 'true'