Inside Bitcoin
Opening the selected file…
Inside Bitcoin
Opening the selected file…
The code behind the network, with room to understand it.
Release published 2026-10-28 · Snapshot fetched 2026-11-01. Latest stable release at fetch time; development branches and Git history are excluded. Only the selected code window and visible folders load here.
1name: 'Run in Docker with environment'2description: 'Run a command in a Docker container, while passing explicitly set environment variables into the container.'3inputs:4dockerfile:5description: 'A Dockerfile that defines an image'6required: true7scope:8description: 'A cached image scope'9required: true10command:11description: 'A command to run in a container'12required: true13runs:14using: "composite"15steps:16- uses: docker/setup-buildx-action@v418- uses: docker/build-push-action@v719id: main_builder20continue-on-error: true21with:22context: .23file: ${{ inputs.dockerfile }}24load: true25cache-from: type=gha,scope=${{ inputs.scope }}27- uses: docker/build-push-action@v728id: retry_builder29if: steps.main_builder.outcome == 'failure'30with:31context: .32file: ${{ inputs.dockerfile }}33load: true34cache-from: type=gha,scope=${{ inputs.scope }}36- # Workaround for https://github.com/google/sanitizers/issues/1614 .37# The underlying issue has been fixed in clang 18.1.3.38run: sudo sysctl -w vm.mmap_rnd_bits=2839shell: bash41- # Tell Docker to pass environment variables in `env` into the container.42run: >43docker run \44$(echo '${{ toJSON(env) }}' | jq -r 'keys[] | "--env \(.) "') \45--volume ${{ github.workspace }}:${{ github.workspace }} \46--workdir ${{ github.workspace }} \47${{ case(steps.main_builder.outcome == 'success', steps.main_builder.outputs.imageid, steps.retry_builder.outputs.imageid) }} \48bash -c "49git config --global --add safe.directory ${{ github.workspace }}50${{ inputs.command }}51"52shell: bash
Independent explanations by MyBitcoinExplorer. Not affiliated with or endorsed by Bitcoin Core. Guides are educational and do not replace the source or its tests.
Bitcoin Core source © its contributors, distributed under the MIT license. Original notices and bundled third-party licenses are retained in the source tree.