Skip to content

build-push-action fails on ghe.com with wrong twirp client URL #1382

Closed
moby/buildkit
#6026
@djamaile

Description

@djamaile

Contributing guidelines

I've found a bug, and:

  • The documentation does not mention anything about my problem
  • There are no open or closed issues that are related to my problem

Description

When running the docker/build-push-action@v6.15.0 tries to export its cache, it fails because the twirp client URL seems invalid.

Expected behaviour

Can export its cache as expected.

Actual behaviour

It currently fails with this error:

 > exporting to GitHub Actions Cache:
------
ERROR: failed to solve: Post "https://results-receiver.actions.***.ghe.comtwirp/github.actions.results.api.v1.CacheService/GetCacheEntryDownloadURL": dial tcp: lookup results-receiver.actions.***..ghe.comtwirp on 168.63.129.16:53: no such host
Reference
Check build summary support
Error: buildx failed with: ERROR: failed to solve: Post "https://results-receiver.actions.***..ghe.comtwirp/github.actions.results.api.v1.CacheService/GetCacheEntryDownloadURL": dial tcp: lookup results-receiver.actions.***..ghe.comtwirp on 168.63.129.16:53: no such host

Seems that url has / omitted after .com

Repository URL

No response

Workflow run URL

No response

YAML workflow

name: Build and Cache Docker

on:
  push:
    branches:
      - main
  pull_request:

jobs:
  build:
    runs-on: ubuntu-latest

    steps:
      - name: Checkout code
        uses: actions/checkout@v4

      - name: Set up Docker Buildx
        uses: docker/setup-buildx-action@v3.10.0

      - name: Build Docker image with cache
        uses: docker/build-push-action@v6.17.0
        with:
          context: .
          tags: my-image:latest
          cache-from: type=gha
          cache-to: type=gha,mode=max
          push: false # set to true if you want to push the image

Workflow logs

No response

BuildKit logs


Additional info

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions