From 76cbb33ee6c5e57ef6dce2939d3c95ca039bd301 Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Sun, 6 Sep 2020 20:11:21 +0200 Subject: [PATCH] Add context job Signed-off-by: CrazyMax --- .github/workflows/ci.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4837fbc..42026b5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -143,6 +143,39 @@ jobs: docker buildx inspect | grep Driver | grep docker docker buildx inspect | grep Status | grep running + context: + runs-on: ubuntu-latest + services: + dind: + image: docker:dind + options: >- + --privileged + --health-cmd "docker info" + --health-interval 10s + --health-timeout 5s + --health-retries 5 + env: + DOCKER_TLS_CERTDIR: "" + ports: + - 2375:2375 + steps: + - + name: Checkout + uses: actions/checkout@v2.3.2 + - + name: Create context + run: | + docker context create mycontext --docker host=tcp://127.0.0.1:2375 + - + name: Check context + run: | + docker --context mycontext info + - + name: Set up Docker Buildx + uses: ./ + with: + context: mycontext + with-qemu: runs-on: ubuntu-latest strategy: