Skip to content

Conversation

@alexhancock
Copy link
Collaborator

I noticed failing docker builds when the trigger is a tag

https://github.com/block/goose/actions/runs/17649096320/job/50154994435?pr=4577

Issue

The problematic line of the action config was:

type=sha,prefix={{branch}}-

When this action runs on a tag (like v1.8.0), the {{branch}} variable is empty, resulting in a tag that starts with just a hyphen: ghcr.io/block/goose:-881a71a. This is an invalid Docker tag format.

Solution

Updated the workflow to use a fixed prefix:

type=sha,prefix=sha-

This change ensures that SHA-based tags will always have a valid format like ghcr.io/block/goose:sha-881a71a regardless of whether the workflow is triggered by a branch push or a tag

@alexhancock alexhancock merged commit a535a17 into main Sep 11, 2025
11 checks passed
@alexhancock alexhancock deleted the alexhancock/docker-build-fix branch September 11, 2025 17:17
michaelneale added a commit that referenced this pull request Sep 15, 2025
* main:
  Soften str_replace instructions for weaker LLMs (#4639)
  docs: changed logo (#4633)
  Add `analyze` tool to Developer extension (#4530)
  Add recipe title in import form (#4625)
  Desktop json recipes upload (#4629)
  Catch errors in node main (#4627)
  chore(deps-dev): bump vite from 7.1.3 to 7.1.5 in /ui/desktop (#4583)
  docs: add Rube extension documentation and server configuration (#4556)
  Always show recipe activities at the top of chat when recipe accepted and active (#4616)
  Add parameter replacement to activities in ui (#4617)
  UI recipes filter invalid, duplicate and unused params (#4615)
  Fix gpt-5 input context limit (#4619)
  [docs] MCP-UI Blog Post (#4578)
  release/1.8.0 (#4577)
  fix: docker build include valid string prior to sha (#4613)
  Run the conversation fixer over messages for recipe create (#4605)
  docs: github copilot config workarounds (#4607)
  Add recipe schema validation to UI (#4602)
@alexhancock alexhancock mentioned this pull request Sep 23, 2025
HikaruEgashira pushed a commit to HikaruEgashira/goose that referenced this pull request Oct 3, 2025
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.

3 participants