1
0
Fork 0
forked from lthn/blockchain
blockchain/.github/workflows/build-docker.yml
Workflow config file is invalid. Please check your config file: yaml: line 42: did not find expected key
Snider 18c93466f2 Update Docker and Docs GitHub workflows
Bump docker/build-push-action to v6 and update file/context in build-docker.yml. Add job name 'Offline Local Version' to build-docs.yml for clarity.
2025-09-27 17:31:22 +01:00

47 lines
1.2 KiB
YAML

name: Docker
permissions:
contents: read
on:
workflow_call:
secrets:
DOCKERHUB_USERNAME:
required: true
DOCKERHUB_TOKEN:
required: true
inputs:
chain-network:
description: "The network to use, can either be testnet, stagenet or mainnet"
default: testnet
required: false
type: string
jobs:
build:
name: "lthn/chain:${{ inputs.chain-network == 'testnet' && 'testnet' || 'latest' }}"
runs-on: ubuntu-22.04
steps:
- name: Checkout Project
uses: actions/checkout@v4.2.2
with:
fetch-depth: 0
submodules: recursive
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v6
with:
file: utils/docker/images/chain-node
context: {{defaultContext}}:${{ github.workspace }}
push: true
tags: lthn/chain:${{ inputs.chain-network == 'testnet' && 'testnet' || 'latest' }}