docker / setup-buildx-action

GitHub Action to set up Docker Buildx
https://github.com/marketplace/actions/docker-setup-buildx
Apache License 2.0
906 stars 142 forks source link

Update to node20 appears to be a breaking change #276

Closed wrose504 closed 10 months ago

wrose504 commented 10 months ago

Contributing guidelines

I've found a bug, and:

Description

A recent commit (02e93192) switched the runner version for the action to node20 from node16. On our self-hosted Github Enterprise server, this results in actions failing with the error.

Expected behaviour

Ideally, a change to the runner to a newer version that is possibly unsupported everywhere would be tagged with a new label (e.g. no longer v3.0.0) so we could continue to use the supported version.

Actual behaviour

Our actions are failing with an error:

Error: System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values. (Parameter ''using: node20' is not supported, use 'docker', 'node12' or 'node16' instead.')
   at GitHub.Runner.Worker.ActionManifestManager.ConvertRuns(IExecutionContext executionContext, TemplateContext templateContext, TemplateToken inputsToken, String fileRelativePath, MappingToken outputs)
   at GitHub.Runner.Worker.ActionManifestManager.Load(IExecutionContext executionContext, String manifestFile)
Error: Fail to load docker/setup-buildx-action/v3/action.yml

Repository URL

No response

Workflow run URL

No response

YAML workflow

name: Test GraphQL
on:
  push:
    branches: [master]
  pull_request:
    branches: [master]
jobs:
  build-app-image:
    name: Build app image
    needs: []
    runs-on: [standard]
    outputs:
      image: app-dev:${{github.sha}}
    env:
      DOCKER_CONTEXT: gha
    steps:
      - name: Git checkout
        uses: actions/checkout@v3
      - name: Create Docker context
        run: docker context create ${{env.DOCKER_CONTEXT}}
      - name: Set up Docker Buildx
        uses: docker/setup-buildx-action@v3
        with:
          endpoint: ${{env.DOCKER_CONTEXT}}
          install: true

Workflow logs

No response

BuildKit logs

No response

Additional info

No response

wrose504 commented 10 months ago

So this may have been filed a little prematurely: we updated our Github actions runner image from v2.306.0-ubuntu-20.04 to v2.309.0-ubuntu-20.04 and node20 is accepted now.

crazy-max commented 10 months ago

@wrose504 Yes as said in the release notes it requires a minimal version of the runner: https://github.com/docker/setup-buildx-action/releases/tag/v3.0.0

... (requires Actions Runner v2.308.0 or later) by @crazy-max in https://github.com/docker/setup-buildx-action/pull/264

That's why this is a major release.