feat(docker): add setup-ccbr-actions composite action and Docker build workflow#190
Draft
kelly-sovacool with Copilot wants to merge 3 commits into
Draft
feat(docker): add setup-ccbr-actions composite action and Docker build workflow#190kelly-sovacool with Copilot wants to merge 3 commits into
kelly-sovacool with Copilot wants to merge 3 commits into
Conversation
…d workflow
- Add Dockerfile to build a Python 3.11-slim image with ccbr_actions pre-installed
- Add .github/workflows/build-docker-ccbr-actions.yml to automatically build
and push nciccbr/ccbr_actions:{tag} to DockerHub on release
- Add setup-ccbr-actions composite action that checks if nciccbr/ccbr_actions:{version}
exists on DockerHub and uses it (docker pull) if available, otherwise installs
ccbr_actions via pip
- Update build-docker to use setup-ccbr-actions instead of directly installing
via pip, with full support for running Python steps via docker or directly
Closes #186"
…ropy - Mount temp script at its actual host path (not a fixed container path) to avoid conflicts when multiple runs use the same container - Increase mktemp randomness from 6 to 10 X's for better uniqueness"
Copilot
AI
changed the title
[WIP] Create Docker with ccbr_actions installed
feat(docker): add setup-ccbr-actions composite action and Docker build workflow
Jul 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Composite actions in this repo always pip-install
ccbr_actionsfrom GitHub. This PR adds a Docker image forccbr_actionsand a composite action that uses it when available, falling back to pip only when no matching image exists.New:
Dockerfile+ build workflowDockerfile:python:3.11-slimbase; installsccbr_actionsvia pip atCCBR_ACTIONS_VERSIONbuild-arg (defaults tomain). Includesprint_versions.shandprepare_docker_build_variables.shscripts..github/workflows/build-docker-ccbr-actions.yml: builds and pushesnciccbr/ccbr_actions:{tag}to DockerHub onrelease: published; manually triggerable with optional push flag.New:
setup-ccbr-actionscomposite actionReplaces the
actions/setup-python+ pip-install pattern used across composite actions. Logic:nciccbr/ccbr_actions:{ccbr-actions-version}docker pull, outputsinstall-method=docker+docker-image=nciccbr/ccbr_actions:{version}actions/setup-python+pip install, outputsinstall-method=pipOutputs let callers branch on which method is active.
Updated:
build-dockeractionsetup-python+ pip-install with./setup-ccbr-actionsshell: pythonsteps (prepare_vars,check_tag_staleness) toshell: bashwith conditional dispatch:docker runwith$GITHUB_ENV/$GITHUB_OUTPUTbind-mounted so Python can write outputsrun_script_in_containerstep extractsprint_versions.shand the default config file from the ccbr_actions image viadocker run --entrypoint shwhen in docker mode