Skip to content

Build base development images #46

Build base development images

Build base development images #46

# .-.-. .-.-. .-.-. .-.-. .-.-. .-.-. .-.-. .-.- .-.-. .-.-. .-.-
# / / \ \ / / \ \ / / \ \ / / \ \ / / \ \ / / \ \ / / \ \ / / \ / / \ \ / / \ \ / / \
# `-' `-`-' `-`-' `-`-' `-`-' `-`-' `-`-' `-`-' `-' `-`-' `-`-'
#
# Reusable workflow that publishes base development docker images
#
# .-.-. .-.-. .-.-. .-.-. .-.-. .-.-. .-.-. .-.- .-.-. .-.-. .-.-
# / / \ \ / / \ \ / / \ \ / / \ \ / / \ \ / / \ \ / / \ \ / / \ / / \ \ / / \ \ / / \
# `-' `-`-' `-`-' `-`-' `-`-' `-`-' `-`-' `-`-' `-' `-`-' `-`-'
name: Build base development images
on:
workflow_call:
workflow_dispatch:
jobs:
build-base:
name: Build base image
runs-on: ubuntu-latest-16xlarge
permissions:
contents: read
packages: write
strategy:
fail-fast: false
matrix:
platform:
- linux/amd64
- linux/arm64
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Build image
uses: ./.github/workflows/actions/docker-build-image
with:
image: devtools-dev-base
target: base
platform: ${{ matrix.platform }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
build-node-evm:
name: Build EVM node image
runs-on: ubuntu-latest-16xlarge
needs:
- build-base
permissions:
contents: read
packages: write
strategy:
fail-fast: false
matrix:
platform:
- linux/amd64
- linux/arm64
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Build image
uses: ./.github/workflows/actions/docker-build-image
with:
image: devtools-dev-node-evm-hardhat
target: node-evm-hardhat
platform: ${{ matrix.platform }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
push-base:
name: Push base image
runs-on: ubuntu-latest-4xlarge
needs:
- build-base
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Push image
uses: ./.github/workflows/actions/merge-docker-image
with:
image: devtools-dev-base
platform: ${{ matrix.platform }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
push-node-evm:
name: Push EVM node image
runs-on: ubuntu-latest-4xlarge
needs:
- build-node-evm
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Push image
uses: ./.github/workflows/actions/merge-docker-image
with:
image: devtools-dev-node-evm-hardhat
platform: ${{ matrix.platform }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}