Skip to content

Fix Docker publish tag handling#9

Merged
skokec merged 1 commit into
masterfrom
codex/update-docker-build-github-action-for-tags
May 29, 2026
Merged

Fix Docker publish tag handling#9
skokec merged 1 commit into
masterfrom
codex/update-docker-build-github-action-for-tags

Conversation

@skokec

@skokec skokec commented May 29, 2026

Copy link
Copy Markdown
Contributor

Motivation

  • Ensure the Docker publish workflow triggers on tag patterns like v1.0 and avoid publishing multiple semver-derived image tags so only the pushed tag name and latest are published.

Description

  • Update on.push.tags in .github/workflows/docker-publish.yml to use v*.* instead of v*.*.* and *.*.*.
  • Remove type=semver outputs from docker/metadata-action@v5 so the only image tags emitted are type=ref,event=tag and type=raw,value=latest.

Testing

  • Ran a Python assertion script that checked the workflow contains - 'v*.*', no longer contains v*.*.*/*.*.*, and that image tags are limited to type=ref,event=tag and type=raw,value=latest, and it succeeded.
  • Attempted YAML parsing with PyYAML in Python which failed due to the environment lacking the yaml module.
  • Parsed the workflow YAML with Ruby using YAML.load_file which succeeded.
  • Ran git diff --check which succeeded.

Codex Task

@skokec skokec marked this pull request as ready for review May 29, 2026 13:50
Copilot AI review requested due to automatic review settings May 29, 2026 13:50
@skokec skokec merged commit 4f2d5a9 into master May 29, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 Docker publish workflow so tag-triggered releases publish only the pushed tag name and latest, matching the intended Docker image tagging behavior.

Changes:

  • Narrows workflow tag triggers to v*.*.
  • Removes semver-derived Docker metadata tags.
  • Keeps publishing the exact pushed tag and latest.

💡 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants