1
0
Fork 0
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:
Snider 2025-09-27 17:23:28 +01:00
parent 2783a7c339
commit 6d9792ed3f

View file

@ -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' }}