Find a file
Gerhard Lazu ccc3d1affc
Merge pull request #50 from crazy-max/log-format-env
use DAGGER_LOG_FORMAT env instead of --log-format flag
2022-04-14 14:40:07 +01:00
.github chore: update screenshot 2022-04-13 17:16:26 +02:00
__tests__ chore(dev): getInputList helper func 2022-04-12 16:39:38 +02:00
dist use DAGGER_LOG_FORMAT env instead of --log-format flag 2022-04-14 12:57:43 +02:00
src use DAGGER_LOG_FORMAT env instead of --log-format flag 2022-04-14 12:57:43 +02:00
test test: .gitattributes: use linguist-generated 2022-03-10 10:49:31 -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 chore: update input section in readme 2022-04-13 17:31:22 +02: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 Merge pull request #37 from dagger/dependabot/npm_and_yarn/actions/exec-1.1.1 2022-04-11 23:34:27 +02:00
README.md chore: fix license in readme 2022-04-13 17:32:23 +02:00
tsconfig.json Initial commit 2021-05-30 07:51:20 +02:00
yarn.lock Merge pull request #37 from dagger/dependabot/npm_and_yarn/actions/exec-1.1.1 2022-04-11 23:34:27 +02: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:
          cmds: do test

Install Only

steps:
  -
    name: Install Dagger
    uses: dagger/dagger-for-github@v2
    with:
      install-only: true
  -
    name: Show Dagger version
    run: dagger version

Multiple commands

steps:
  -
    name: Install Dagger
    uses: dagger/dagger-for-github@v2
    with:
      cmds: |
        project update
        do test

Customizing

inputs

Following inputs can be used as step.with keys

List type is a newline-delimited string

cmds: |
  project update
  do test
Name Type Default Description
version String latest Dagger version
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.