Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 20, 2025

Docker images built from the main branch CI workflow were not being tagged as "latest".

Changes

Modified .github/workflows/docker-publish.yml to explicitly configure tag generation in the docker/metadata-action step:

- name: Extract Docker metadata
  id: meta
  uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
  with:
    images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
    tags: |
      type=ref,event=branch
      type=ref,event=pr
      type=semver,pattern={{version}}
      type=semver,pattern={{major}}.{{minor}}
      type=semver,pattern={{major}}
      type=raw,value=latest,enable={{is_default_branch}}

The type=raw,value=latest,enable={{is_default_branch}} rule ensures images are tagged as "latest" when built from the default branch (main).

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • http://crl3.digicert.com:443/DigiCertTrustedG4RSA4096SHA256TimeStampingCA.crl
  • http://crl3.digicert.com:443/DigiCertTrustedRootG4.crl

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

I want to have all docker images built as part of the main CI be tagged as "latest"


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

Co-authored-by: paulirwin <1874103+paulirwin@users.noreply.github.com>
Copilot AI changed the title [WIP] Tag all Docker images as latest in CI Add "latest" tag to Docker images built from main branch Nov 20, 2025
Copilot AI requested a review from paulirwin November 20, 2025 19:14
@paulirwin paulirwin marked this pull request as ready for review November 20, 2025 19:15
@paulirwin paulirwin merged commit 770f624 into main Nov 20, 2025
2 checks passed
@paulirwin paulirwin deleted the copilot/tag-docker-images-as-latest branch November 20, 2025 19:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants