Skip to content

Build and publish boost devnet containers via CI #9

Build and publish boost devnet containers via CI

Build and publish boost devnet containers via CI #9

Workflow file for this run

name: Build
on:
workflow_dispatch:
push:
branches:
- 'main'
tags:
- 'v*'
pull_request:
jobs:
build:
name: Containers
runs-on: ubuntu-latest
env:
LOTUS_TEST_IMAGE: 'filecoin/lotus-all-in-one:v1.23.2'
FFI_BUILD_FROM_SOURCE: '0'
DOCKER_BUILDKIT: '1'
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Update Boost modules
run: make build/.update-modules
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Log in to the Container registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build boost-dev
uses: ./.github/actions/container-builder
with:
name: boost-dev
file: docker/devnet/Dockerfile.source
target: boost-dev
build-args: |
LOTUS_TEST_IMAGE=${{ env.LOTUS_TEST_IMAGE }}
FFI_BUILD_FROM_SOURCE=${{ env.FFI_BUILD_FROM_SOURCE }}
- name: Build booster-http-dev
uses: docker/build-push-action@v4
with:
context: .
cache-from: type=gha
cache-to: type=gha,mode=max
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
file: docker/devnet/Dockerfile.source
target: booster-http-dev
build-args: |
LOTUS_TEST_IMAGE=${{ env.LOTUS_TEST_IMAGE }}
FFI_BUILD_FROM_SOURCE=${{ env.FFI_BUILD_FROM_SOURCE }}
- name: Build booster-bitswap-dev
uses: docker/build-push-action@v4
with:
context: .
cache-from: type=gha
cache-to: type=gha,mode=max
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
file: docker/devnet/Dockerfile.source
target: booster-bitswap-dev
build-args: |
LOTUS_TEST_IMAGE=${{ env.LOTUS_TEST_IMAGE }}
FFI_BUILD_FROM_SOURCE=${{ env.FFI_BUILD_FROM_SOURCE }}
- name: Build lotus-dev
uses: docker/build-push-action@v4
with:
context: ./docker/devnet/lotus
cache-from: type=gha
cache-to: type=gha,mode=max
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: |
LOTUS_TEST_IMAGE=${{ env.LOTUS_TEST_IMAGE }}
FFI_BUILD_FROM_SOURCE=${{ env.FFI_BUILD_FROM_SOURCE }}
- name: Build lotus-miner-dev
uses: docker/build-push-action@v4
with:
context: ./docker/devnet/lotus-miner
cache-from: type=gha
cache-to: type=gha,mode=max
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: |
LOTUS_TEST_IMAGE=${{ env.LOTUS_TEST_IMAGE }}
FFI_BUILD_FROM_SOURCE=${{ env.FFI_BUILD_FROM_SOURCE }}