> Dagger with GitHub Actions
Run Dagger CI/CD pipelines in GitHub Actions for portable, testable builds.
fetch
$
curl "https://skillshub.wtf/skillshub-team/catalog-batch5/dagger-github-actions?format=md"SKILL.md•Dagger with GitHub Actions
Dagger + GitHub Actions
.github/workflows/ci.yml
name: CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dagger/dagger-for-github@v6
with:
verb: run
args: node pipeline.ts
Pipeline
import { connect } from "@dagger.io/dagger";
connect(async (client) => {
const src = client.host().directory(".");
const node = client.container().from("node:20")
.withDirectory("/app", src).withWorkdir("/app")
.withExec(["npm", "ci"]);
await node.withExec(["npm", "test"]).sync();
await node.withExec(["npm", "run", "build"]).sync();
});
Same pipeline runs locally (dagger run) and in CI
Built-in caching, no vendor lock-in
> related_skills --same-repo
> Nix Dev Shells with direnv
Auto-activate reproducible dev environments with Nix flakes and direnv.
> Bun + Hono API
Build fast APIs with Bun runtime and Hono framework.
> Deno Fresh Framework
Build full-stack web apps with Fresh on Deno. Islands, routes, and zero runtime overhead.
> Pulumi AWS Infrastructure
Deploy AWS resources with Pulumi TypeScript: Lambda, S3, DynamoDB, API Gateway.