https://github.com/dagger/dagger-for-github
GitHub Action for Dagger
https://github.com/dagger/dagger-for-github
actions dagger docker github-actions
Last synced: about 2 months ago
JSON representation
GitHub Action for Dagger
- Host: GitHub
- URL: https://github.com/dagger/dagger-for-github
- Owner: dagger
- License: apache-2.0
- Created: 2021-05-28T13:14:40.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2025-03-28T11:35:27.000Z (4 months ago)
- Last Synced: 2025-05-15T19:38:46.547Z (about 2 months ago)
- Topics: actions, dagger, docker, github-actions
- Homepage: https://github.com/marketplace/actions/dagger-for-github
- Size: 818 KB
- Stars: 148
- Watchers: 7
- Forks: 29
- Open Issues: 22
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GitHub action to run Dagger
## Usage Examples
### `dagger call` (default)
```yaml
- name: Hello
uses: dagger/[email protected]
with:
module: github.com/shykes/daggerverse/hello
call: hello --greeting Hola --name Jeremy
cloud-token: ${{ secrets.DAGGER_CLOUD_TOKEN }}
version: "latest" # semver x.y.z
```### `dagger run`
```yaml
- name: Integration Test
uses: dagger/[email protected]
with:
workdir: db-service
verb: run
args: node build.js
cloud-token: ${{ secrets.DAGGER_CLOUD_TOKEN }}
version: "latest" # semver x.y.z
```### Staying in sync with the `latest` version
By setting the version to `latest`, this action will install the latest version of Dagger.
### All `with:` input parameter options
| Key | Description | Required | Default |
| -------------- | ----------------------------------------------------------- | -------- | ------------------ |
| `version` | Dagger Version | true | n/a use semver x.y.z or 'latest'
| `commit` | Dagger Dev Commit (overrides `version`) | false | '' |
| `dagger-flags` | Dagger CLI Flags | false | '--progress plain' |
| `verb` | CLI verb (call, run, download, up, functions, shell, query) | false | 'call' |
| `workdir` | The working directory in which to run the Dagger CLI | false | '.' |
| `cloud-token` | Dagger Cloud Token | false | '' |
| `module` | Dagger module to call. Local or Git | false | '' |
| `args` | Arguments to pass to CLI | false | '' |
| `call` | Arguments to pass to CLI (Alias for args) | false | '' |
| `engine-stop` | Whether to stop the Dagger Engine after this run | false | 'true' |