{"id":43924704,"url":"https://github.com/slauger/hugo-gitops-pipeline","last_synced_at":"2026-04-02T20:23:03.950Z","repository":{"id":336936767,"uuid":"1151694891","full_name":"slauger/hugo-gitops-pipeline","owner":"slauger","description":"Reusable GitHub Actions workflow for Hugo sites with GitOps deployment. Self-hosted on Hetzner Cloud, GDPR-compliant, no external CDNs.","archived":false,"fork":false,"pushed_at":"2026-04-01T00:53:06.000Z","size":401,"stargazers_count":0,"open_issues_count":7,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-01T01:13:02.293Z","etag":null,"topics":["argocd","cicd","gdpr","github-actions","gitops","hetzner-cloud","hugo","kubernetes"],"latest_commit_sha":null,"homepage":"https://slauger.github.io/hugo-gitops-pipeline/","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/slauger.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-02-06T19:32:31.000Z","updated_at":"2026-03-31T23:58:52.000Z","dependencies_parsed_at":"2026-02-07T08:13:35.528Z","dependency_job_id":null,"html_url":"https://github.com/slauger/hugo-gitops-pipeline","commit_stats":null,"previous_names":["slauger/hugo-gitops-pipeline"],"tags_count":23,"template":false,"template_full_name":null,"purl":"pkg:github/slauger/hugo-gitops-pipeline","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slauger%2Fhugo-gitops-pipeline","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slauger%2Fhugo-gitops-pipeline/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slauger%2Fhugo-gitops-pipeline/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slauger%2Fhugo-gitops-pipeline/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/slauger","download_url":"https://codeload.github.com/slauger/hugo-gitops-pipeline/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slauger%2Fhugo-gitops-pipeline/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31315692,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T12:59:32.332Z","status":"ssl_error","status_checked_at":"2026-04-02T12:54:48.875Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["argocd","cicd","gdpr","github-actions","gitops","hetzner-cloud","hugo","kubernetes"],"created_at":"2026-02-06T23:03:02.824Z","updated_at":"2026-04-02T20:23:03.945Z","avatar_url":"https://github.com/slauger.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hugo GitOps Pipeline\n\nA complete, reusable CI/CD pipeline for Hugo sites with GitOps deployment to Kubernetes. Designed for **GDPR-compliant hosting** entirely within the EU - no Cloudflare, no Google Fonts, no external CDNs.\n\n\u003e **New to this project?** Check out the [Getting Started Guide](https://slauger.github.io/hugo-gitops-pipeline/getting-started/) and the [Reference Architecture](https://slauger.github.io/hugo-gitops-pipeline/architecture/).\n\n## Features\n\n- 🇪🇺 **GDPR-Compliant** - Self-hosted on Hetzner Cloud (Germany), no data leaves the EU\n- 🔄 **GitOps Ready** - Automated deployment via ArgoCD with [gitops-image-replacer](https://github.com/slauger/gitops-image-replacer)\n- 🌍 **Multi-Environment** - Support for dev, staging, QA, production with branch-based deployment\n- 📦 **Reusable Workflow** - Single `workflow_call` for all your Hugo sites\n- 🛠️ **Flexible Build Steps** - Customize build/lint/test phases or add your own\n- 🐳 **Container Images** - Builder (Node.js + Hugo), Runtime (hardened nginx), Cleanup (registry GC)\n- 🔒 **Security** - Pinned image digests, non-root containers, security headers\n- 🏷️ **Semantic Versioning** - Automated releases with [semantic-release](https://github.com/semantic-release/semantic-release)\n\n### Branch to Environment Mapping\n\nEach branch automatically deploys to its corresponding environment:\n\n```mermaid\nflowchart LR\n    subgraph Branches\n        feature[\"feature/*\"]\n        develop[\"develop\"]\n        main[\"main\"]\n    end\n\n    subgraph Environments\n        dev[\"Dev\"]\n        staging[\"Staging\"]\n        prod[\"Production\"]\n    end\n\n    feature --\u003e|\"PR\"| develop\n    develop --\u003e|\"merge\"| main\n\n    feature -.-\u003e|\"optional\"| dev\n    develop --\u003e|\"auto deploy\"| staging\n    main --\u003e|\"auto deploy\"| prod\n\n    classDef devStyle fill:#1e88e5,stroke:#1565c0,color:#fff\n    classDef stagingStyle fill:#fb8c00,stroke:#ef6c00,color:#fff\n    classDef prodStyle fill:#43a047,stroke:#2e7d32,color:#fff\n\n    class dev devStyle\n    class staging stagingStyle\n    class prod prodStyle\n```\n\n## Quick Start\n\n**1. Add `project.json` to your Hugo repo:**\n\n```json\n{\n  \"environments\": {\n    \"staging\": {\n      \"when\": \"^refs/heads/develop$\",\n      \"environment\": \"staging\",\n      \"gitops\": { \"repository\": \"myorg/gitops\", \"file\": \"apps/mysite/values-staging.yaml\" }\n    },\n    \"production\": {\n      \"when\": \"^refs/heads/main$\",\n      \"environment\": \"production\",\n      \"gitops\": { \"repository\": \"myorg/gitops\", \"file\": \"apps/mysite/values-prod.yaml\" }\n    }\n  }\n}\n```\n\nThe `environment` field maps to Hugo's native [Configuration Directory](https://gohugo.io/getting-started/configuration/#configuration-directory) - use it to show environment banners, change colors, or adjust settings per environment.\n\n**2. Add workflow `.github/workflows/ci-cd.yml`:**\n\n```yaml\nname: CI/CD\non:\n  push:\n    branches: [main, develop]\n  workflow_dispatch:\n\njobs:\n  pipeline:\n    uses: slauger/hugo-gitops-pipeline/.github/workflows/hugo-gitops.yml@v1\n    with:\n      registry: registry.example.com\n      image_name: my-hugo-site\n    secrets: inherit\n```\n\n**3. Configure secrets and push.**\n\n## Documentation\n\n| Guide | Description |\n|-------|-------------|\n| [Getting Started](https://slauger.github.io/hugo-gitops-pipeline/getting-started/) | Step-by-step setup guide |\n| [Configuration](https://slauger.github.io/hugo-gitops-pipeline/configuration/) | All `project.json` options |\n| [Build Steps](https://slauger.github.io/hugo-gitops-pipeline/build-steps/) | Customize build phases |\n| [Environments](https://slauger.github.io/hugo-gitops-pipeline/environments/) | Multi-environment setup |\n| [Architecture](https://slauger.github.io/hugo-gitops-pipeline/architecture/) | GDPR-compliant reference architecture |\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslauger%2Fhugo-gitops-pipeline","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fslauger%2Fhugo-gitops-pipeline","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslauger%2Fhugo-gitops-pipeline/lists"}