mirror of
https://github.com/dagger/dagger-for-github.git
synced 2025-12-31 20:59:43 +11:00
GitHub Action for Dagger
https://github.com/marketplace/actions/dagger-for-github
Bumps [@actions/core](https://github.com/actions/toolkit/tree/HEAD/packages/core) from 1.9.0 to 1.9.1. - [Release notes](https://github.com/actions/toolkit/releases) - [Changelog](https://github.com/actions/toolkit/blob/main/packages/core/RELEASES.md) - [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/core) --- updated-dependencies: - dependency-name: "@actions/core" dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> |
||
|---|---|---|
| .github | ||
| __tests__ | ||
| dist | ||
| src | ||
| test | ||
| .dockerignore | ||
| .editorconfig | ||
| .eslintrc.json | ||
| .gitattributes | ||
| .gitignore | ||
| .prettierrc.json | ||
| action.yml | ||
| codecov.yml | ||
| dev.Dockerfile | ||
| docker-bake.hcl | ||
| jest.config.ts | ||
| LICENSE | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
| yarn.lock | ||
About
GitHub Action for Dagger, a programmable deployment system.
Usage
Basic
name: dagger
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v3
-
name: Dagger
uses: dagger/dagger-for-github@v3
with:
cmds: do test
Install Only
steps:
-
name: Install Dagger
uses: dagger/dagger-for-github@v3
with:
install-only: true
-
name: Show Dagger version
run: dagger version
Multiple commands
steps:
-
name: Dagger
uses: dagger/dagger-for-github@v3
with:
cmds: |
project update
do test
Customizing
inputs
Following inputs can be used as step.with keys
Listtype is a newline-delimited stringcmds: | project update do test
| Name | Type | Default | Description |
|---|---|---|---|
version |
String | latest |
Dagger version (e.g., v0.2.7, latest, https://github.com/dagger/dagger.git#main) |
cmds |
List | List of Dagger commands | |
workdir |
String | . |
Working directory (below repository root) |
install-only |
Bool | false |
Just install Dagger |
cleanup |
Bool | true |
Cleanup Dagger home folder at the end of a job |
Development
# format code and build javascript artifacts
docker buildx bake pre-checkin
# validate all code has correctly formatted and built
docker buildx bake validate
# run tests
docker buildx bake test
License
Apache-2.0 License. See LICENSE for more details.

