forked from lthn/blockchain
Update build-docker.yml
This commit is contained in:
parent
56bb2a1abf
commit
d11cee2229
1 changed files with 8 additions and 1 deletions
9
.github/workflows/build-docker.yml
vendored
9
.github/workflows/build-docker.yml
vendored
|
|
@ -34,6 +34,9 @@ jobs:
|
||||||
platform: linux/arm64
|
platform: linux/arm64
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
submodules: recursive
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
@ -47,9 +50,13 @@ jobs:
|
||||||
- name: Build and push image
|
- name: Build and push image
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
context: .
|
context: ${{ github.workspace }}
|
||||||
file: utils/docker/images/lthn-chain/Dockerfile
|
file: utils/docker/images/lthn-chain/Dockerfile
|
||||||
push: true
|
push: true
|
||||||
|
build-args: |
|
||||||
|
BUILD_TESTNET=${{ inputs.chain-network == 'testnet' && '1' || '0' }}
|
||||||
|
THREADS=2
|
||||||
|
BUILD_LOCAL=1
|
||||||
platforms: ${{ matrix.platform }}
|
platforms: ${{ matrix.platform }}
|
||||||
tags: lthn/chain:${{ env.LTHN_TAG }}${{ matrix.tag }}
|
tags: lthn/chain:${{ env.LTHN_TAG }}${{ matrix.tag }}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue