Skip to content

Set up your GitHub Actions workflow with a specific version of Dagger

License

Notifications You must be signed in to change notification settings

camptocamp/setup-dagger

GitHub Action to set up Dagger

Tests

This GitHub Action sets up Dagger: it installs Dagger CLI and starts Dagger Engine.

Usage

steps:
  - name: "Check out repository"
    id: "checkout"
    uses: "actions/checkout@v4"

  - name: "Set up Dagger"
    id: "setup-dagger"
    uses: "camptocamp/setup-dagger@v1"
    with:
      module-path: "path/to/folder/containing/dagger.json"
      cloud-token: "{{ $secrets.DAGGER_CLOUD_TOKEN }}"

  - name: "Run Dagger"
    id: "run-dagger"
    run: |
      dagger version
    working-directory: "${{ steps.setup-dagger.outputs.module-path }}"