Skip to content

Add osg-htc Harbor project support - #316

Closed
brianhlin wants to merge 3 commits into
opensciencegrid:mainfrom
brianhlin:add-osg-htc-project-support
Closed

Add osg-htc Harbor project support#316
brianhlin wants to merge 3 commits into
opensciencegrid:mainfrom
brianhlin:add-osg-htc-project-support

Conversation

@brianhlin

@brianhlin brianhlin commented Jul 28, 2026

Copy link
Copy Markdown
Member

Expanding on the commit in #308 . This might work out of the box -- the account appears to have osg-htc push permissions

@brianhlin
brianhlin requested a review from a team as a code owner July 28, 2026 16:53
Copilot AI review requested due to automatic review settings July 28, 2026 16:53
@brianhlin brianhlin closed this Jul 28, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the container build workflow to support building images from both the existing opensciencegrid/... tree and a new osg-htc/... tree by carrying the full image directory path through the job matrix and using that as the build context.

Changes:

  • Update scripts/build-job-matrix.py to emit the full image directory path in the matrix name field (instead of basename).
  • Update the GitHub Actions workflow to detect image directories under both opensciencegrid/ and osg-htc/, and to use matrix.name directly as the build context.
  • Remove a previously required tail -n +2 workaround by removing the script’s debug print.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
scripts/build-job-matrix.py Matrix entries now keep the full org/image directory path to support multiple org roots.
.github/workflows/build-containers.yml Expands image discovery to opensciencegrid/ and osg-htc/, and uses full paths as build contexts.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 90 to 94
# Run Python script and capture JSON output
matrix_json=$(python scripts/build-job-matrix.py ${{ steps.image-list.outputs.images }} | tail -n +2)
matrix_json=$(python scripts/build-job-matrix.py ${{ steps.image-list.outputs.images }})
# Use jq to extract the 'include' part of the JSON
matrix=$(echo "$matrix_json" | jq -c '.include')
echo "::set-output name=matrix::$matrix"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants