mirror of
https://github.com/dagger/dagger-for-github.git
synced 2026-01-01 05:00:21 +11:00
GitHub Action for Dagger
https://github.com/marketplace/actions/dagger-for-github
Bumps [@actions/exec](https://github.com/actions/toolkit/tree/HEAD/packages/exec) from 1.0.4 to 1.1.0. - [Release notes](https://github.com/actions/toolkit/releases) - [Changelog](https://github.com/actions/toolkit/blob/main/packages/exec/RELEASES.md) - [Commits](https://github.com/actions/toolkit/commits/@actions/core@1.1.0/packages/exec) --- updated-dependencies: - dependency-name: "@actions/exec" dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> |
||
|---|---|---|
| .github | ||
| __tests__ | ||
| dist | ||
| hack | ||
| src | ||
| test | ||
| .dockerignore | ||
| .editorconfig | ||
| .gitattributes | ||
| .gitignore | ||
| .prettierrc.json | ||
| action.yml | ||
| docker-bake.hcl | ||
| jest.config.js | ||
| 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@v2
-
name: Dagger
uses: dagger/dagger-action@v1
with:
age-key: ${{ secrets.DAGGER_AGE_KEY }}
args: up
Install Only
steps:
-
name: Install Dagger
uses: dagger/dagger-action@v1
with:
install-only: true
-
name: Show Dagger version
run: dagger version
Customizing
inputs
Following inputs can be used as step.with keys
| Name | Type | Default | Description |
|---|---|---|---|
version |
String | latest |
Dagger version |
age-key |
String | Dagger private key | |
args |
String | Arguments to pass to Dagger | |
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
MIT. See LICENSE for more details.

