Skip to content

Add latest tag to production workflow for non-manual builds#362

Merged
ShaneIsrael merged 2 commits intomainfrom
copilot/update-production-workflow-tags
Dec 5, 2025
Merged

Add latest tag to production workflow for non-manual builds#362
ShaneIsrael merged 2 commits intomainfrom
copilot/update-production-workflow-tags

Conversation

Copy link
Contributor

Copilot AI commented Dec 5, 2025

Production Docker builds triggered by version tags (e.g., v1.0.0) were not pushing to latest, only manual workflow dispatches could set that tag.

Changes

  • Added explicit tag configuration to the merge job's metadata action:
    • type=semver,pattern={{version}} — version tag (e.g., 1.0.0)
    • type=semver,pattern={{major}}.{{minor}} — major.minor tag (e.g., 1.0)
    • type=raw,value=latest — always includes latest
- name: Extract metadata (tags, labels) for Docker
  id: meta
  uses: docker/metadata-action@v5
  with:
    images: ${{ env.REGISTRY_IMAGE }}
    tags: |
      type=semver,pattern={{version}}
      type=semver,pattern={{major}}.{{minor}}
      type=raw,value=latest

Manual builds continue to work as before with user-specified tags.

Original prompt

The production workflow build (non develop) needs to also push to the tag latest for non-manual builds.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI changed the title [WIP] Update production workflow to push tag 'latest' Add latest tag to production workflow for non-manual builds Dec 5, 2025
Copilot AI requested a review from ShaneIsrael December 5, 2025 04:23
@ShaneIsrael ShaneIsrael marked this pull request as ready for review December 5, 2025 04:29
@ShaneIsrael ShaneIsrael merged commit 7fdf0e5 into main Dec 5, 2025
@ShaneIsrael ShaneIsrael deleted the copilot/update-production-workflow-tags branch January 2, 2026 06:03
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