diff --git a/.github/workflows/build-push-optimism-contract-deployer.yml b/.github/workflows/build-push-optimism-contract-deployer.yml deleted file mode 100644 index a3f9533..0000000 --- a/.github/workflows/build-push-optimism-contract-deployer.yml +++ /dev/null @@ -1,95 +0,0 @@ -name: Build optimism-contract-deployer docker image - -on: - workflow_dispatch: - inputs: - repository: - description: The source optimism repository to build from - default: ethereum-optimism/optimism - type: string - required: true - ref: - description: The branch, tag or SHA to checkout and build from - default: develop - type: string - required: true - docker_tag: - description: Override target docker tag (defaults to the above source ref if left blank) - type: string - required: false - -jobs: - prepare: - runs-on: ubuntu-latest - outputs: - platforms: ${{ steps.setup.outputs.platforms }} - target_tag: ${{ steps.tag.outputs.docker_tag }} - steps: - - uses: actions/checkout@v4 - - name: Prepare Matrix - id: setup - uses: ./.github/actions/prepare - with: - client: 'optimism-contract-deployer' - - name: Generate target tag - id: tag - uses: ./.github/actions/docker-tag - with: - input: ${{ inputs.docker_tag || inputs.ref }} - deploy: - needs: - - prepare - runs-on: ${{ matrix.runner }} - continue-on-error: true - strategy: - matrix: - include: ${{fromJson(needs.prepare.outputs.platforms)}} - steps: - - uses: actions/checkout@v4 - - uses: ./.github/actions/install-deps - with: - repository: ${{ inputs.repository }} - - uses: ./.github/actions/deploy - with: - source_repository: ${{ inputs.repository }} - source_ref: ${{ inputs.ref }} - target_dockerfile: ./optimism-contract-deployer/Dockerfile - target_tag: ${{ needs.prepare.outputs.target_tag }}-${{ matrix.slug }} - target_repository: ethpandaops/optimism-contract-deployer - platform: ${{ matrix.platform }} - - DOCKER_USERNAME: "${{ vars.DOCKER_USERNAME }}" - DOCKER_PASSWORD: "${{ secrets.DOCKER_PASSWORD }}" - MACOS_PASSWORD: "${{ secrets.MACOS_PASSWORD }}" - GOPROXY: "${{ vars.GOPROXY }}" - manifest: - needs: - - prepare - - deploy - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: ./.github/actions/manifest - with: - source_repository: ${{ inputs.repository }} - source_ref: ${{ inputs.ref }} - target_tag: ${{ needs.prepare.outputs.target_tag }} - target_repository: ethpandaops/optimism-contract-deployer - platforms: ${{ needs.prepare.outputs.platforms }} - - DOCKER_USERNAME: "${{ vars.DOCKER_USERNAME }}" - DOCKER_PASSWORD: "${{ secrets.DOCKER_PASSWORD }}" - notify: - name: Discord Notification - runs-on: ubuntu-latest - needs: - - prepare - - deploy - - manifest - if: failure() - steps: - - name: Notify - uses: nobrayner/discord-webhook@v1 - with: - github-token: ${{ secrets.github_token }} - discord-webhook: ${{ secrets.DISCORD_WEBHOOK }} diff --git a/README.md b/README.md index 542e41b..f7dd131 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,6 @@ Run the *Build **tooling*** workflow; - [Build goomy-blob](https://github.com/ethpandaops/eth-client-docker-image-builder/actions/workflows/build-push-goomy-blob.yaml) [[source](https://github.com/ethpandaops/goomy-blob)] - [Build ethereum-genesis-generator](https://github.com/ethpandaops/eth-client-docker-image-builder/actions/workflows/build-push-genesis-generator.yml) [[source](https://github.com/ethpandaops/ethereum-genesis-generator)] - [Build mev-rs](https://github.com/ethpandaops/eth-client-docker-image-builder/actions/workflows/build-push-mev-rs.yml) [[source](https://github.com/ralexstokes/mev-rs)] -- [Build optimism-contract-deployer](https://github.com/ethpandaops/eth-client-docker-image-builder/actions/workflows/build-push-optimism-contract-deployer.yml) [[source](https://github.com/ethereum-optimism/optimism)] ## Adding a new image to build on schedule diff --git a/optimism-contract-deployer/Dockerfile b/optimism-contract-deployer/Dockerfile deleted file mode 100644 index 116752f..0000000 --- a/optimism-contract-deployer/Dockerfile +++ /dev/null @@ -1,76 +0,0 @@ -FROM debian:latest as builder - -WORKDIR /workspace - -# Install dependencies using apt -RUN apt-get update && apt-get install -y --no-install-recommends \ - git \ - make \ - jq \ - direnv \ - bash \ - curl \ - gcc \ - g++ \ - vim \ - curl \ - build-essential \ - libusb-1.0-0-dev \ - libssl-dev \ - ca-certificates \ - && apt-get clean \ - && rm -rf /var/lib/apt/lists/* - -ARG TARGETPLATFORM - - -RUN curl -sL https://go.dev/dl/go$(curl -s https://raw.githubusercontent.com/ethereum-optimism/optimism/develop/versions.json | jq -r '.go').linux-$(dpkg --print-architecture).tar.gz -o go.tar.gz && \ - tar -C /usr/local/ -xzvf go.tar.gz && \ - rm go.tar.gz -ENV GOPATH=/go -ENV PATH=/usr/local/go/bin:$GOPATH/bin:$PATH - -# Clone the Optimism monorepo and build the `op-node` binary for L2 genesis generation. -RUN git clone https://github.com/ethereum-optimism/optimism.git && \ - cd optimism && \ - git checkout develop && \ - git pull origin develop && \ - cd op-node && \ - make - -# Install foundry -RUN curl -L https://foundry.paradigm.xyz | bash -ENV PATH="/root/.foundry/bin:${PATH}" -RUN FOUNDRY_VERSION=$(curl -s https://raw.githubusercontent.com/ethereum-optimism/optimism/develop/versions.json | jq -r '.foundry') && foundryup -v nightly-$FOUNDRY_VERSION - -# Build the Optimism contracts -RUN cd optimism/packages/contracts-bedrock && forge build - - -# Use multi-stage build to keep the final image lean -FROM debian:stable-slim - -WORKDIR /workspace - -# Install dependencies using apt -RUN apt-get update && apt-get install -y --no-install-recommends \ - jq \ - direnv \ - git \ - bash \ - curl \ - ca-certificates \ - && apt-get clean \ - && rm -rf /var/lib/apt/lists/* - -COPY --from=builder /usr/local /usr/local -COPY --from=builder /workspace/optimism /workspace/optimism -COPY --from=builder /root/.foundry /root/.foundry - -# Set up environment variables -ENV PATH="/root/.foundry/bin:/usr/local/go/bin:${PATH}" - - -# Set the working directory and default command -WORKDIR /workspace/optimism -CMD ["bash"] diff --git a/platforms.yaml b/platforms.yaml index 3cdfcb8..97b4ab0 100644 --- a/platforms.yaml +++ b/platforms.yaml @@ -73,8 +73,5 @@ grandine: - linux/amd64 - linux/arm64 mev-rs: - - linux/amd64 - - linux/arm64 -optimism-contract-deployer: - linux/amd64 - linux/arm64 \ No newline at end of file