From d0ee37ba271510546f3d1755a403875f04a251e8 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 e453c7cfee5c..8c833701d3ba 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -336,6 +336,16 @@ jobs: - name: "Pre: Fixup directories" 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: