Skip to content

Commit 5db19c8

Browse files
committed
Create docker context before running buildx
1 parent fa4d481 commit 5db19c8

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

action.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,18 @@ outputs:
3636
runs:
3737
using: "composite"
3838
steps:
39-
- id: context
40-
run: echo "::set-output name=tag::sha-${{ github.sha }}"
39+
# docker context must be created prior to setting up Docker Buildx
40+
# https://github.com/actions-runner-controller/actions-runner-controller/issues/893
41+
- name: Set up Docker Context for Buildx
4142
shell: bash
43+
id: buildx-context
44+
run: |
45+
docker context create buildx-context
4246
4347
- name: Set up Docker Buildx
4448
uses: docker/setup-buildx-action@v1
49+
with:
50+
endpoint: buildx-context
4551

4652
- name: Login
4753
uses: docker/login-action@v2

0 commit comments

Comments
 (0)