Skip to content

Commit e0e8572

Browse files
authored
Merge pull request #10 from cloudposse/fix/docker-context
Bug Fix: Create `docker context` before running `buildx`
2 parents fa4d481 + 475306d commit e0e8572

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

action.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,18 @@ runs:
4040
run: echo "::set-output name=tag::sha-${{ github.sha }}"
4141
shell: bash
4242

43+
# docker context must be created prior to setting up Docker Buildx
44+
# https://github.com/actions-runner-controller/actions-runner-controller/issues/893
45+
- name: Set up Docker Context for Buildx
46+
shell: bash
47+
id: buildx-context
48+
run: |
49+
docker context create buildx-context
50+
4351
- name: Set up Docker Buildx
4452
uses: docker/setup-buildx-action@v1
53+
with:
54+
endpoint: buildx-context
4555

4656
- name: Login
4757
uses: docker/login-action@v2

0 commit comments

Comments
 (0)