Skip to content

Commit

Permalink
feat: add dind service to runner (#187)
Browse files Browse the repository at this point in the history
  • Loading branch information
aweris authored Nov 14, 2023
1 parent 9c41bd1 commit d00c71c
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 70 deletions.
3 changes: 2 additions & 1 deletion daggerverse/gale/dagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"sdk": "go",
"dependencies": [
"../repo",
"../source"
"../source",
"github.com/aweris/daggerverse/docker@969bc30a84b48f76a28afab3986144d2e47469df"
]
}
3 changes: 3 additions & 0 deletions daggerverse/gale/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ func (r *Runner) Container(
ctr = ctr.With(dag.Source().ArtifactService().BindAsService)
ctr = ctr.With(dag.Source().ArtifactCacheService().BindAsService)

// extra services
ctr = ctr.With(dag.Docker().WithCacheVolume("gale-docker-cache").BindAsService)

// configure repo
ctr = ctr.With(info.Configure)

Expand Down
36 changes: 0 additions & 36 deletions examples/workflows/step-docker.yaml

This file was deleted.

33 changes: 0 additions & 33 deletions examples/workflows/step-run.yaml

This file was deleted.

3 changes: 3 additions & 0 deletions examples/workflows/step.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Use Docker Cli directly
run: docker info

- name: Git log
uses: docker://alpine/git:latest
with:
Expand Down

0 comments on commit d00c71c

Please sign in to comment.