sipsma / dagger-for-github

GitHub Action for Dagger

Home Page:https://github.com/marketplace/actions/dagger-for-github

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

GitHub Action for Dagger

https://github.com/marketplace/actions/dagger-for-github

License:Apache License 2.0


Languages

Language:TypeScript 73.2%Language:Dockerfile 16.2%Language:HCL 8.2%Language:CUE 2.5%