forked from lthn/blockchain
Add DockerHub secrets to build-docker workflow
The build-docker workflow now requires DOCKERHUB_USERNAME and DOCKERHUB_TOKEN secrets, which are inherited in the _on-push workflow. This ensures DockerHub credentials are available for Docker-related actions.
This commit is contained in:
parent
f5cd385fb3
commit
2783a7c339
2 changed files with 6 additions and 0 deletions
1
.github/workflows/_on-push.yml
vendored
1
.github/workflows/_on-push.yml
vendored
|
|
@ -44,6 +44,7 @@ jobs:
|
|||
uses: ./.github/workflows/build-docker.yml
|
||||
with:
|
||||
chain-network: ${{ github.ref_name == 'main' && 'mainnet' || 'testnet' }}
|
||||
secrets: inherit
|
||||
|
||||
build-docs:
|
||||
name: Docs
|
||||
|
|
|
|||
5
.github/workflows/build-docker.yml
vendored
5
.github/workflows/build-docker.yml
vendored
|
|
@ -3,6 +3,11 @@ 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"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue