gds_env icon indicating copy to clipboard operation
gds_env copied to clipboard

Enhance Makefile to tag Docker images as latest in addition to timestamp tags

Open Copilot opened this issue 6 months ago • 0 comments

This PR enhances the build and build_code targets in the Makefile to automatically tag the resulting Docker images as latest in addition to their existing timestamp-based tags.

Changes Made

For the build target:

  • After building gds:YYYY-MM-DD_ARCH, now also tags the image as gds:latest

For the build_code target:

  • After building gds_code:YYYY-MM-DD_ARCH, now also tags the image as gds_code:latest

Implementation Details

  • Uses chained commands with && to ensure latest tagging only occurs after successful builds
  • Maintains all existing functionality and behavior
  • No changes to Makefile structure or other targets
  • Minimal footprint: only 4 lines added, 2 lines modified

Example Usage

After running make build, you'll now have both:

gds:2025-08-04_amd64    # Timestamp-based tag (existing behavior)
gds:latest              # Latest tag (new)

After running make build_code, you'll now have both:

gds_code:2025-08-04_amd64    # Timestamp-based tag (existing behavior)  
gds_code:latest              # Latest tag (new)

This makes it easier to reference the most recent builds without needing to know the specific timestamp, while preserving the existing timestamp-based versioning for reproducibility.


💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.

Copilot avatar Aug 04 '25 13:08 Copilot