Find a file
Andrea Luzzardi 50095541a5
Merge pull request #31 from aluzzardi/fix-example
README: fix action version in example
2022-03-09 15:19:28 -08:00
.github update action to dagger 0.2 2022-03-09 14:47:41 -08:00
__tests__ support major-minor version pinning 2022-03-09 11:38:04 -08:00
dist update action to dagger 0.2 2022-03-09 14:47:41 -08:00
src update action to dagger 0.2 2022-03-09 14:47:41 -08:00
test update action to dagger 0.2 2022-03-09 14:47:41 -08:00
.dockerignore Initial commit 2021-05-30 07:51:20 +02:00
.editorconfig Initial commit 2021-05-30 07:51:20 +02:00
.gitattributes Initial commit 2021-05-30 07:51:20 +02:00
.gitignore Initial commit 2021-05-30 07:51:20 +02:00
.prettierrc.json Initial commit 2021-05-30 07:51:20 +02:00
action.yml update action to dagger 0.2 2022-03-09 14:47:41 -08:00
dev.Dockerfile dev: update workflow 2021-12-16 03:28:57 +01:00
docker-bake.hcl dev: update workflow 2021-12-16 03:28:57 +01:00
jest.config.js Initial commit 2021-05-30 07:51:20 +02:00
LICENSE Move to dagger org 2021-05-30 08:51:33 +02:00
package.json rename repo to dagger-for-github 2022-02-25 11:49:00 +01:00
README.md README: fix action version in example 2022-03-09 15:10:49 -08:00
tsconfig.json Initial commit 2021-05-30 07:51:20 +02:00
yarn.lock Bump @actions/core from 1.5.0 to 1.6.0 2021-09-29 10:15:54 +00:00

Dagger

GitHub release GitHub marketplace Test workflow Codecov

About

GitHub Action for Dagger, a programmable deployment system.

Screenshot


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-for-github@v2
        with:
          args: do test

Install Only

steps:
  -
    name: Install Dagger
    uses: dagger/dagger-for-github@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
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.