-
Notifications
You must be signed in to change notification settings - Fork 72
71 lines (69 loc) · 2.4 KB
/
container-build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: Build
on:
push:
branches:
- 'main'
tags:
- 'v*'
pull_request:
jobs:
build:
name: Containers
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
env:
LOTUS_VERSION: 'v1.27.0'
LOTUS_SOURCE_IMAGE: 'ghcr.io/filecoin-shipyard/lotus-containers:lotus'
NETWORK_NAME: 'devnet'
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 QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
with:
platforms: linux/amd64,linux/arm64
- name: Log in to the Container registry
uses: docker/login-action@v2
if: ${{ github.event_name != 'pull_request' }}
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
push: ${{ github.event_name != 'pull_request' }}
build-args: |
LOTUS_TEST_IMAGE=${{ env.LOTUS_SOURCE_IMAGE }}-${{ env.LOTUS_VERSION }}-${{ env.NETWORK_NAME }}
FFI_BUILD_FROM_SOURCE=${{ env.FFI_BUILD_FROM_SOURCE }}
- name: Build booster-http-dev
uses: ./.github/actions/container-builder
with:
name: booster-http-dev
file: docker/devnet/Dockerfile.source
target: booster-http-dev
push: ${{ github.event_name != 'pull_request' }}
build-args: |
LOTUS_TEST_IMAGE=${{ env.LOTUS_SOURCE_IMAGE }}-${{ env.LOTUS_VERSION }}-${{ env.NETWORK_NAME }}
FFI_BUILD_FROM_SOURCE=${{ env.FFI_BUILD_FROM_SOURCE }}
- name: Build booster-bitswap-dev
uses: ./.github/actions/container-builder
with:
name: booster-bitswap-dev
file: docker/devnet/Dockerfile.source
target: booster-bitswap-dev
push: ${{ github.event_name != 'pull_request' }}
build-args: |
LOTUS_TEST_IMAGE=${{ env.LOTUS_SOURCE_IMAGE }}-${{ env.LOTUS_VERSION }}-${{ env.NETWORK_NAME }}
FFI_BUILD_FROM_SOURCE=${{ env.FFI_BUILD_FROM_SOURCE }}