Skip to content

docs(deployment): use SHA tagging in GitHub Actions Docker example#221

Open
andrerfneves wants to merge 1 commit into
mainfrom
maintenance/fix-gh-actions-docker-example-20260626
Open

docs(deployment): use SHA tagging in GitHub Actions Docker example#221
andrerfneves wants to merge 1 commit into
mainfrom
maintenance/fix-gh-actions-docker-example-20260626

Conversation

@andrerfneves

Copy link
Copy Markdown
Owner

Summary

Updates the GitHub Actions CI example in DEPLOYMENT_DOCKER.md to use commit SHA-based tagging alongside :latest, consistent with the approach taken for the GitLab CI example in PR #214.

Why

The GitHub Actions example used only tags: yourusername/lightning-decoder:latest. Tagging images solely with :latest makes it impossible to trace which commit a running container corresponds to. This is a well-known anti-pattern for production deployments.

This change is the GitHub Actions counterpart of PR #214, which fixed the same issue in the GitLab CI example.

Changes

  • DEPLOYMENT_DOCKER.md: Changed the GitHub Actions Build and push step from a single :latest tag to both :latest and :${{ github.sha }} tags:
    • :latest — retained as a convenience alias for the most recent build
    • :${{ github.sha }} — unique, traceable image reference per commit

Test Plan

Replace the bare :latest tag with both :latest and :${{ github.sha }}
tags in the GitHub Actions CI example in DEPLOYMENT_DOCKER.md. This
is consistent with PR #214, which made the same fix for the GitLab CI
example.

Using :latest alone makes it impossible to trace which commit a running
container corresponds to. Adding a SHA-based tag creates uniquely
identifiable and traceable image references, while keeping :latest as
a convenience alias for the most recent build.
@vercel

vercel Bot commented Jun 26, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
lightning-decoder Ready Ready Preview, Comment Jun 26, 2026 10:03pm

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.

1 participant