close
Skip to content

The builder is always cleaned up with --keep-state argument, regardless of the option set in the action #428

@xbb

Description

@xbb

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

Hello,

since the latest version 3.11.0, in the post action, the builder is removed with --keep-state by default and even when keep-state is set to false.

Image

Image

Expected behaviour

when the input option keep-state is false, buildx rm <builder> is called without --keep-state,

Actual behaviour

buildx rm <builder> is called with --keep-state even when keep-state is false

Repository URL

No response

Workflow run URL

No response

YAML workflow

name: Setup Docker Buildx
on:
    workflow_dispatch:
jobs:
  setup-buildx:
    runs-on: [ubuntu-latest]
    steps:
      - name: Defaults
        uses: docker/setup-buildx-action@v3

      - name: Keep state false
        uses: docker/setup-buildx-action@v3
        with:
          keep-state: false

      - name: Name and keep state false
        uses: docker/setup-buildx-action@v3
        with:
          name: test
          keep-state: false

Workflow logs

No response

BuildKit logs


Additional info

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions