Skip to content

ci: build Docker image on every push, only push to GHCR on release#5

Merged
AlexanderJ-Carter merged 6 commits into
masterfrom
copilot/fix-invalid-tag-error
Mar 17, 2026
Merged

ci: build Docker image on every push, only push to GHCR on release#5
AlexanderJ-Carter merged 6 commits into
masterfrom
copilot/fix-invalid-tag-error

Conversation

Copilot AI commented Mar 17, 2026

Copy link
Copy Markdown

All post-build steps were gated by IS_RELEASE == 'true', causing the Docker image build to be skipped on every non-main/master push — including the Docker Buildx setup and the OWNER env var needed for image tags.

Changes

  • Set release env — removed IS_RELEASE guard; OWNER must always be set for Docker tag references
  • Set up Docker Buildx — removed IS_RELEASE guard; runs unconditionally
  • Build and push image:latest — removed if guard; build always runs, push is conditional:
- name: Build and push image:latest
  uses: docker/build-push-action@v6
  with:
      push: ${{ env.IS_RELEASE == 'true' }}  # build always, push only on release
      platforms: linux/amd64,linux/arm64
      tags: ghcr.io/${{ env.OWNER }}/${{ env.IMAGE_NAME }}:latest
  • Login to GitHub Container Registry — remains release-only (no push needed on feature branches)
  • Build and push image:tags — unchanged, still requires a new tag from create-tag-action

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: AlexanderJ-Carter <121274570+AlexanderJ-Carter@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix invalid tag error in buildx process Fix Docker image tag failing due to uppercase repository owner Mar 17, 2026
Copilot AI requested a review from AlexanderJ-Carter March 17, 2026 01:28
…release body Docker URLs

Co-authored-by: AlexanderJ-Carter <121274570+AlexanderJ-Carter@users.noreply.github.com>
Copilot AI changed the title Fix Docker image tag failing due to uppercase repository owner ci: fix uppercase owner in Docker tags and release body, remove redundant step Mar 17, 2026
@AlexanderJ-Carter
AlexanderJ-Carter marked this pull request as ready for review March 17, 2026 01:38
Copilot AI review requested due to automatic review settings March 17, 2026 01:38

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 GitHub Actions CI workflow to consistently use a lowercase GitHub repository owner when referencing GHCR image paths, preventing issues with Docker/GHCR name normalization.

Changes:

  • Add a step that computes a lowercase owner value from github.repository_owner and exposes it via step outputs.
  • Update the release notes’ Docker command examples to use the lowercase owner for ghcr.io/... image references.
  • Update the Docker image tagging logic to publish images under ghcr.io/<lowercase-owner>/<image>:....

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

…s into two steps

Co-authored-by: AlexanderJ-Carter <121274570+AlexanderJ-Carter@users.noreply.github.com>
Copilot AI changed the title ci: fix uppercase owner in Docker tags and release body, remove redundant step ci: refactor pipeline — release-only env for lowercase owner, split Docker builds Mar 17, 2026
Co-authored-by: AlexanderJ-Carter <121274570+AlexanderJ-Carter@users.noreply.github.com>
Copilot AI changed the title ci: refactor pipeline — release-only env for lowercase owner, split Docker builds ci: fix skipped release steps and add workflow_dispatch for manual testing Mar 17, 2026
Co-authored-by: AlexanderJ-Carter <121274570+AlexanderJ-Carter@users.noreply.github.com>
Copilot AI changed the title ci: fix skipped release steps and add workflow_dispatch for manual testing ci: Docker image builds on every push; only pushes to GHCR on release Mar 17, 2026
Copilot AI changed the title ci: Docker image builds on every push; only pushes to GHCR on release ci: build Docker image on every push, only push to GHCR on release Mar 17, 2026
@AlexanderJ-Carter
AlexanderJ-Carter merged commit 5ef60d1 into master Mar 17, 2026
3 checks passed
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.

3 participants