Find a file
CrazyMax 5d2fa7868f
Bump to latest major
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-05-06 16:50:24 +02:00
.github Bump docker/bake-action from 1 to 2 2022-05-06 13:17:56 +02:00
__tests__ build and install dagger from source 2022-04-25 21:19:37 +02:00
dist Fix deprecation warning since Node 16 2022-05-06 13:13:45 +02:00
src Fix deprecation warning since Node 16 2022-05-06 13:13:45 +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
.eslintrc.json chore: update dev dependencies and workflow 2022-04-23 14:35:24 +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 chore: update dev dependencies and workflow 2022-04-23 14:35:24 +02:00
action.yml Node 16 as default runtime 2022-05-06 13:08:22 +02:00
codecov.yml codecov config 2022-04-23 19:03:54 +02:00
dev.Dockerfile Node 16 as default runtime 2022-05-06 13:08:22 +02:00
docker-bake.hcl chore: update dev dependencies and workflow 2022-04-23 14:35:24 +02:00
jest.config.ts chore: update dev dependencies and workflow 2022-04-23 14:35:24 +02:00
LICENSE Move to dagger org 2021-05-30 08:51:33 +02:00
package.json chore: update dev dependencies and workflow 2022-04-23 14:35:24 +02:00
README.md Bump to latest major 2022-05-06 16:50:24 +02:00
tsconfig.json chore: update dev dependencies and workflow 2022-04-23 14:35:24 +02:00
yarn.lock chore: update dev dependencies and workflow 2022-04-23 14:35:24 +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@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

List type is a newline-delimited string

cmds: |
  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.