Find a file
Jeremy Adams 3b0cb23d46
Add --with example to README
Signed-off-by: Jeremy Adams <jeremy@dagger.io>
2023-02-13 12:52:15 -08:00
.github rename dagger to dagger-cue (#79) 2023-02-13 17:08:12 -03:00
__tests__ rename dagger to dagger-cue (#79) 2023-02-13 17:08:12 -03:00
dist rename dagger to dagger-cue (#79) 2023-02-13 17:08:12 -03:00
src rename dagger to dagger-cue (#79) 2023-02-13 17:08:12 -03: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 rename dagger to dagger-cue (#79) 2023-02-13 17:08:12 -03: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 Update dev dependencies 2022-10-16 05:14:06 +02:00
README.md Add --with example to README 2023-02-13 12:52:15 -08:00
tsconfig.json chore: update dev dependencies and workflow 2022-04-23 14:35:24 +02:00
yarn.lock Update dev dependencies 2022-10-16 05:14:06 +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@v4
        with:
          cmds: do test

Install Only

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

Install Only and --with

steps:
  -
    name: Install Dagger
      uses: dagger/dagger-for-github@v4
      with:
        install-only: true
     
  -
    name: Build a subdir example
    run: |
      dagger-cue do build --log-format plain -with 'actions:build:subdir: ${{env.SUBDIR}}'

Multiple commands

steps:
  -
    name: Dagger
    uses: dagger/dagger-for-github@v4
    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 0.2.232 Dagger version (e.g., 0.2.232, 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.