Skip to content

Fix Docker build: clone main branch from PyGEM-Community/PyGEM - #2

Draft
Ruitangtang with Copilot wants to merge 2 commits into
masterfrom
copilot/fix-github-actions-build-push-docker
Draft

Fix Docker build: clone main branch from PyGEM-Community/PyGEM#2
Ruitangtang with Copilot wants to merge 2 commits into
masterfrom
copilot/fix-github-actions-build-push-docker

Conversation

Copilot AI commented Jul 3, 2026

Copy link
Copy Markdown

The Docker build job was failing because PyGEM-Community/PyGEM uses main as its default branch, but the Dockerfile and workflow were hardcoded to clone master, which doesn't exist in that repo.

Changes

  • docker/Dockerfile: Change ARG PYGEM_BRANCH=mastermain
  • .github/workflows/docker_pygem.yml: Map this repo's master branch to main when passing PYGEM_BRANCH build arg; add comment explaining the intentional name mismatch
# Before
ARG PYGEM_BRANCH=master

# After
ARG PYGEM_BRANCH=main
# Before
PYGEM_BRANCH=${{ github.ref == 'refs/heads/master' && 'master' || 'dev' }}

# After
# Map this repo's 'master' branch to 'main' in PyGEM-Community/PyGEM (upstream uses 'main')
PYGEM_BRANCH=${{ github.ref == 'refs/heads/master' && 'main' || 'dev' }}

Copilot AI changed the title [WIP] Fix failing GitHub Actions job for building and pushing Docker container Fix Docker build: clone main branch from PyGEM-Community/PyGEM Jul 3, 2026
Copilot AI requested a review from Ruitangtang July 3, 2026 09:18
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