[PR #2555] [MERGED] fix(ci): use actual docker meta tags for preview comment SHA links #5726

Closed
opened 2026-04-16 13:50:27 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-vikunja/vikunja/pull/2555
Author: @tink-bot
Created: 4/7/2026
Status: Merged
Merged: 4/7/2026
Merged by: @kolaente

Base: mainHead: fix/preview-sha-tags


📝 Commits (1)

  • 6acfa98 fix(ci): use actual docker meta tags for preview comment SHA links

📊 Changes

1 file changed (+15 additions, -6 deletions)

View changed files

📝 .github/workflows/preview.yml (+15 -6)

📄 Description

The preview comment was constructing SHA-based URLs from context.payload.pull_request.head.sha, but docker/metadata-action generates the sha-* tag from github.sha — which for pull_request_target events is the base branch commit, not the PR head. This caused preview URLs that didn't correspond to any actual docker image tag.

Now reads the actual tags from the docker meta step's output (steps.meta.outputs.tags) so the comment always matches what was pushed to GHCR.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-vikunja/vikunja/pull/2555 **Author:** [@tink-bot](https://github.com/tink-bot) **Created:** 4/7/2026 **Status:** ✅ Merged **Merged:** 4/7/2026 **Merged by:** [@kolaente](https://github.com/kolaente) **Base:** `main` ← **Head:** `fix/preview-sha-tags` --- ### 📝 Commits (1) - [`6acfa98`](https://github.com/go-vikunja/vikunja/commit/6acfa9853e3e2092118479ebc0ffcb939a575b29) fix(ci): use actual docker meta tags for preview comment SHA links ### 📊 Changes **1 file changed** (+15 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/preview.yml` (+15 -6) </details> ### 📄 Description The preview comment was constructing SHA-based URLs from `context.payload.pull_request.head.sha`, but `docker/metadata-action` generates the `sha-*` tag from `github.sha` — which for `pull_request_target` events is the base branch commit, not the PR head. This caused preview URLs that didn't correspond to any actual docker image tag. Now reads the actual tags from the docker meta step's output (`steps.meta.outputs.tags`) so the comment always matches what was pushed to GHCR. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-16 13:50:27 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/vikunja#5726