Build base development images #77
Workflow file for this run
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
# .-.-. .-.-. .-.-. .-.-. .-.-. .-.-. .-.-. .-.- .-.-. .-.-. .-.- | |
# / / \ \ / / \ \ / / \ \ / / \ \ / / \ \ / / \ \ / / \ \ / / \ / / \ \ / / \ \ / / \ | |
# `-' `-`-' `-`-' `-`-' `-`-' `-`-' `-`-' `-`-' `-' `-`-' `-`-' | |
# | |
# Reusable workflow that publishes base development docker images | |
# | |
# .-.-. .-.-. .-.-. .-.-. .-.-. .-.-. .-.-. .-.- .-.-. .-.-. .-.- | |
# / / \ \ / / \ \ / / \ \ / / \ \ / / \ \ / / \ \ / / \ \ / / \ / / \ \ / / \ \ / / \ | |
# `-' `-`-' `-`-' `-`-' `-`-' `-`-' `-`-' `-`-' `-' `-`-' `-`-' | |
name: Build base development images | |
on: | |
workflow_call: | |
workflow_dispatch: | |
jobs: | |
# | |
# Build the base image and push it as digests | |
# | |
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 & push the digest | |
uses: ./.github/workflows/actions/docker-build-image | |
with: | |
# The name of the image | |
image: devtools-dev-base | |
# The target stage of the Dockerfile | |
target: base | |
# Since the digests will be shared across jobs as artifacts, | |
# we need a unique name (per workflow) for these artifacts | |
digest-name: base | |
platform: ${{ matrix.platform }} | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
# | |
# Build the EVM node image and push it as digests | |
# | |
# We build the node images after we're done with the base so that we can use the docker layer cache | |
# instead of rebuilding the whole thing from scratch | |
# | |
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 & push the digest | |
uses: ./.github/workflows/actions/docker-build-image | |
with: | |
# The name of the image | |
image: devtools-dev-node-evm-hardhat | |
# The target stage of the Dockerfile | |
target: node-evm-hardhat | |
# Since the digests will be shared across jobs as artifacts, | |
# we need a unique name (per workflow) for these artifacts | |
digest-name: node-evm-hardhat | |
platform: ${{ matrix.platform }} | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
# | |
# Build the TON node image and push it as digests | |
# | |
# We build the node images after we're done with the base so that we can use the docker layer cache | |
# instead of rebuilding the whole thing from scratch | |
# | |
build-node-ton: | |
name: Build TON 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 & push the digest | |
uses: ./.github/workflows/actions/docker-build-image | |
with: | |
# The name of the image | |
image: devtools-dev-node-ton-my-local-ton | |
# The target stage of the Dockerfile | |
target: node-ton-my-local-ton | |
# Since the digests will be shared across jobs as artifacts, | |
# we need a unique name (per workflow) for these artifacts | |
digest-name: node-ton-my-local-ton | |
platform: ${{ matrix.platform }} | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
# | |
# Collect the base image digests and push them to GHCR | |
# | |
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/docker-push-image | |
with: | |
# The name of the image | |
image: devtools-dev-base | |
# Since the digests will be shared across jobs as artifacts, | |
# we need a unique name (per workflow) for these artifacts | |
# | |
# This needs to match the digest name of the build stage | |
digest-name: base | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
# | |
# Collect the EVM node image digests and push them to GHCR | |
# | |
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/docker-push-image | |
with: | |
# The name of the image | |
image: devtools-dev-node-evm-hardhat | |
# Since the digests will be shared across jobs as artifacts, | |
# we need a unique name (per workflow) for these artifacts | |
# | |
# This needs to match the digest name of the build stage | |
digest-name: node-evm-hardhat | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
# | |
# Collect the TON node image digests and push them to GHCR | |
# | |
push-node-ton: | |
name: Push TON node image | |
runs-on: ubuntu-latest-4xlarge | |
needs: | |
- build-node-ton | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Push image | |
uses: ./.github/workflows/actions/docker-push-image | |
with: | |
# The name of the image | |
image: devtools-dev-node-ton-my-local-ton | |
# Since the digests will be shared across jobs as artifacts, | |
# we need a unique name (per workflow) for these artifacts | |
# | |
# This needs to match the digest name of the build stage | |
digest-name: node-ton-my-local-ton | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} |