From edb740754242d8d634c7efb157a99f56accfc24c Mon Sep 17 00:00:00 2001 From: Tom Wieczorek Date: Fri, 5 Jan 2024 17:48:21 +0100 Subject: [PATCH] Install docker buildx for self-hosted runners They are currently not shipping with buildx by default, so try to install it. Signed-off-by: Tom Wieczorek --- .github/workflows/go.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index d80defb2f9fd..01257a8ea85a 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -348,6 +348,16 @@ jobs: if: matrix.arch == 'arm' run: find . -type d -not -perm /u+w -exec chmod u+w '{}' \; + - name: Set up Docker Context for Buildx + if: matrix.arch != 'arm' + run: docker context create builders + + - name: Set up Docker Buildx + if: matrix.arch != 'arm' + uses: docker/setup-buildx-action@v3 + with: + endpoint: builders + - name: Check out code into the Go module directory uses: actions/checkout@v4 with: