dagger-for-github/README.md
João Fernandes 056e107b22
feat: add 'cmds' input
Signed-off-by: João Fernandes <joaofnds@joaofnds.com>
2022-04-13 09:57:06 -03:00

2.8 KiB

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

Name Type Default Description
version String latest Dagger version
cmds String Commands to run on 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.