Skip to content

Commit

Permalink
Merge pull request #35 from crazy-max/dind
Browse files Browse the repository at this point in the history
Add example with DinD
  • Loading branch information
CrazyMax authored and GitHub committed Dec 11, 2020
2 parents 12fd633 + 7dc3c3a commit 7c9afe2
Showing 1 changed file with 28 additions and 1 deletion.
29 changes: 28 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 7c9afe2

Please sign in to comment.