forked from lthn/blockchain
Update Docker build workflow with dynamic job name
Adds a dynamic job name based on the chain network input and updates Docker build context and file paths to use absolute paths. This improves clarity in workflow runs and ensures correct Dockerfile resolution.
This commit is contained in:
parent
2783a7c339
commit
6d9792ed3f
1 changed files with 3 additions and 2 deletions
5
.github/workflows/build-docker.yml
vendored
5
.github/workflows/build-docker.yml
vendored
|
|
@ -17,6 +17,7 @@ on:
|
|||
|
||||
jobs:
|
||||
build:
|
||||
name: "lthn/chain:${{ inputs.chain-network == 'testnet' && 'testnet' || 'latest' }}"
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- name: Checkout Project
|
||||
|
|
@ -39,8 +40,8 @@ jobs:
|
|||
id: docker_build
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
file: utils/docker/images/chain-node
|
||||
context: .
|
||||
file: ${{ github.workspace }}/utils/docker/images/chain-node/Dockerfile
|
||||
context: ${{ github.workspace }}
|
||||
push: true
|
||||
tags: lthn/chain:${{ inputs.chain-network == 'testnet' && 'testnet' || 'latest' }}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue