Skip to content

fix: pass Docker tag variables as env vars instead of build args#212

Merged
TimPietruskyRunPod merged 2 commits intomainfrom
fix/changeset-pr-ci-trigger
Mar 20, 2026
Merged

fix: pass Docker tag variables as env vars instead of build args#212
TimPietruskyRunPod merged 2 commits intomainfrom
fix/changeset-pr-ci-trigger

Conversation

@TimPietruskyRunPod
Copy link
Copy Markdown
Contributor

Summary

  • RELEASE_VERSION, DOCKERHUB_REPO, and DOCKERHUB_IMG are HCL variables used in docker-bake.hcl tag templates (e.g., ${RELEASE_VERSION}-base). Passing them via *.args.* only sets Docker build args, not HCL variables, so the tags always defaulted to "latest" instead of the actual semver version.
  • Changed the release workflow to pass these as environment variables via env: on the bake step, which is how docker buildx bake resolves HCL variables.
  • The manual workflows (manual-push-dockerhub.yml, manual-build-all.yml) already set these as env vars via $GITHUB_ENV, which is why manual builds produced correct tags.
  • Includes a changeset to trigger a new release.

Test plan

  • Merge this PR, then merge the resulting "chore: version packages" PR
  • Verify the release workflow produces tags like 5.8.4-base, 5.8.4-sdxl, etc. on Docker Hub instead of latest-base

Pushes made by GITHUB_TOKEN don't trigger workflows (GitHub limitation),
so the changeset PR never gets the required 'test' status check.
This adds a step that creates a successful check run via the API
after the changesets action pushes to the PR branch.
RELEASE_VERSION, DOCKERHUB_REPO, and DOCKERHUB_IMG are HCL variables
used in docker-bake.hcl tag templates. Passing them via *.args.* only
sets Docker build args, not HCL variables, so the tags defaulted to
"latest" instead of the actual version.
Copy link
Copy Markdown

@Madiator2011Work Madiator2011Work left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@TimPietruskyRunPod TimPietruskyRunPod merged commit 639d6bb into main Mar 20, 2026
2 checks passed
@TimPietruskyRunPod TimPietruskyRunPod deleted the fix/changeset-pr-ci-trigger branch March 20, 2026 12:54
theOnlyHorst pushed a commit to theOnlyHorst/worker-comfyui that referenced this pull request Mar 30, 2026
…pod-workers#212)

* fix: auto-create check run on changeset PR to satisfy branch protection

Pushes made by GITHUB_TOKEN don't trigger workflows (GitHub limitation),
so the changeset PR never gets the required 'test' status check.
This adds a step that creates a successful check run via the API
after the changesets action pushes to the PR branch.

* fix: pass Docker tag variables as env vars instead of build args

RELEASE_VERSION, DOCKERHUB_REPO, and DOCKERHUB_IMG are HCL variables
used in docker-bake.hcl tag templates. Passing them via *.args.* only
sets Docker build args, not HCL variables, so the tags defaulted to
"latest" instead of the actual version.

---------

Co-authored-by: Tim Pietrusky <timpietrusky@gmail.com>
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