Skip to content

Commit 174e903

Browse files
authored
fix(ci): remove stale client Docker images before benchmark genesis build (ethereum#2544)
1 parent b1cb9eb commit 174e903

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

.github/actions/build-benchmark-genesis/action.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,19 @@ runs:
3737
tar -xzf "${{ inputs.fixtures_path }}"
3838
echo "Fixtures extracted successfully"
3939
40+
- name: Remove stale client Docker images
41+
shell: bash
42+
run: |
43+
echo "Removing stale Hive client images to force fresh builds..."
44+
images_to_remove=$(docker images --format '{{.Repository}}:{{.Tag}}' | grep -E '^(hive/clients/|.*/(client-go|besu|nethermind))' || true)
45+
if [ -n "$images_to_remove" ]; then
46+
echo "Found the following images to remove:"
47+
echo "$images_to_remove"
48+
echo "$images_to_remove" | xargs docker rmi -f
49+
else
50+
echo "No matching Hive client images found to remove."
51+
fi
52+
4053
- name: Start Hive in dev mode
4154
id: start-hive
4255
uses: ./.github/actions/start-hive-dev

0 commit comments

Comments
 (0)