From 7dc3c3a70e7b76299d1ae482895960afda81ca7e Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Tue, 8 Dec 2020 19:12:27 +0100 Subject: [PATCH] Add example with DinD Signed-off-by: CrazyMax --- .github/workflows/ci.yml | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6555a4e..a32e27c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,6 +9,33 @@ on: - master jobs: + dind: + runs-on: ubuntu-latest + env: + DOCKER_CONFIG: $HOME/.docker + steps: + - + name: Checkout + uses: actions/checkout@v2 + - + name: Login to GitHub Container Registry + uses: ./ + with: + registry: ghcr.io + username: ${{ secrets.GHCR_USERNAME }} + password: ${{ secrets.GHCR_PAT }} + - + name: DinD + uses: docker://docker + with: + entrypoint: docker + args: pull ghcr.io/docker-ghactiontest/test + - + name: Pull private image + run: | + docker image prune -a -f >/dev/null 2>&1 + docker pull ghcr.io/docker-ghactiontest/test + dockerhub: runs-on: ${{ matrix.os }} strategy: @@ -97,7 +124,7 @@ jobs: name: Checkout uses: actions/checkout@v2 - - name: Login to GitHub Package Registry + name: Login to GitHub Container Registry uses: ./ with: registry: ghcr.io