Skip to content

Use release tags for Docker image publishing and add Docker skip markers#60

Merged
mfa777 merged 4 commits intomasterfrom
develop
Mar 26, 2026
Merged

Use release tags for Docker image publishing and add Docker skip markers#60
mfa777 merged 4 commits intomasterfrom
develop

Conversation

@mfa777
Copy link
Copy Markdown
Owner

@mfa777 mfa777 commented Mar 26, 2026

This pull request updates the release and Docker image publishing workflows to make Docker builds more flexible and easier to control. The main improvements are the introduction of a reusable workflow for building and pushing Docker images, support for skipping Docker builds via commit message markers, and improved documentation describing the new process.

Workflow improvements and flexibility:

  • Refactored .github/workflows/build-and-push.yml to be a reusable workflow that accepts release_tag, source_ref, and skip_docker as inputs, and uses release_tag for Docker image tags instead of the commit SHA. It now conditionally runs based on the skip_docker flag. [1] [2] [3]

Conditional Docker publishing:

  • Updated .github/workflows/release-on-master-merge.yml to detect #skip-docker or :noimage markers in the merge commit message and set the skip_docker output accordingly, allowing releases to skip Docker image builds and pushes when needed. [1] [2]
  • Modified the release workflow to call the new reusable Docker build workflow, passing the relevant inputs and handling the skip logic. The release notes now indicate whether Docker images were published or skipped. [1] [2]

Documentation updates:

  • Updated docs/BUILD_AND_PUSH.md to describe the new workflow structure, the Docker skip mechanism, and how to customize or troubleshoot the release process. [1] [2]

Copilot AI and others added 4 commits March 26, 2026 12:57
Co-authored-by: mfa777 <2765931+mfa777@users.noreply.github.com>
Agent-Logs-Url: https://github.com/mfa777/pg_with_backup/sessions/39bc7f3c-b7bf-424c-be40-a7e6c34eb84a
…r-tags

Use release tags for Docker image publishing and add Docker skip markers
@mfa777 mfa777 requested a review from Copilot March 26, 2026 13:35
@mfa777 mfa777 merged commit 9b346af into master Mar 26, 2026
2 checks passed
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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 refactors the GitHub Actions release pipeline so Docker images are built/published from a reusable workflow using the generated semver release tag (instead of the commit SHA), with an opt-out mechanism via merge-commit markers.

Changes:

  • Converted build-and-push.yml into a workflow_call reusable workflow that tags images with the generated release_tag and can be skipped via a boolean input.
  • Updated the release workflow to detect #skip-docker / :noimage in the merge commit message, conditionally invoke the reusable Docker workflow, and annotate release metadata with whether images were published or skipped.
  • Updated documentation to reflect the new release/tagging and Docker publishing flow.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
docs/BUILD_AND_PUSH.md Documents the updated release-tag-based Docker publishing flow and skip markers.
.github/workflows/release-on-master-merge.yml Adds skip-marker detection and calls the reusable build workflow; release notes reflect publish vs skip.
.github/workflows/build-and-push.yml Reworked into a reusable workflow with inputs for release_tag, source_ref, and skip_docker; tags images using release_tag.

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

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