Skip to content

Error building GitHub Action container image and pushing to ghcr.io during automated release #246

@jmeridth

Description

@jmeridth

Describe the bug

Using docker/build-push-action getting error when pushing images to ghcr.io in the create_release-images workflow.

To Reproduce

  1. Merge PR to main (default branch)
  2. Release, tag, and discussion created succesffully
  3. GitHub Action container image built successfully but errors when pushing to ghcr.io
buildx failed with: ERROR: failed to solve: failed to push ghcr.io/issue_metrics:latest: 
unexpected status from HEAD request to https://ghcr.io/v2/issue_metrics/blobs/sha256:[SHA]: 400 Bad Request

Expected behavior

GitHub Action container image is built successfully and pushed to ghcr.io without issue.

This is succeeding in https://github.com/github/cleanowners already without issue.

Screenshots

No response

Additional context

Might be related to pushing multiple tags at once, unknown.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions