This GitHub Action sets up Dagger: it installs Dagger CLI and starts Dagger Engine.
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 }}"