• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

CyberDuck79 / duckfile / 17358081107 / 1
77%
main: 80%

Build:
Build:
LAST BUILD BRANCH: dependabot/go_modules/github.com/spf13/cobra-1.10.2
DEFAULT BRANCH: main
Ran 31 Aug 2025 01:56PM UTC
Files 25
Run time 0s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

31 Aug 2025 01:55PM UTC coverage: 77.116% (+0.5%) from 76.628%
17358081107.1

Pull #56

github

CyberDuck79
feat: expose repository paths as environment variables

- Add 8 environment variables available during target execution:
  - DUCK_REPO_PATH: Local cache path to repository
  - DUCK_REPO_URL: Repository URL
  - DUCK_REPO_REF: Repository reference (branch/tag)
  - DUCK_TEMPLATE_PATH: Path to template within repo
  - DUCK_RENDERED_PATH: Path to rendered template
  - DUCK_SYMLINK_PATH: Final symlinked path
  - DUCK_TARGET_NAME: Target name from config
  - DUCK_CACHE_DIR: Duck cache directory

This enables advanced template use cases:
- Multi-file templates: Reference other files in the repo
- Script execution: Run build scripts from template repo
- Dynamic includes: Include configuration fragments
- Asset copying: Copy static files alongside templates

Implementation details:
- Extended PrepareTemplateResult struct with new fields
- Added buildDuckEnvironment function for env var creation
- Modified executeTarget to inject environment variables
- Added comprehensive unit and integration tests
- Updated documentation with examples and use cases
Pull Request #56: feat: expose repository paths as environment variables

1294 of 1678 relevant lines covered (77.12%)

11.55 hits per line

Source Files on job 17358081107.1
  • Tree
  • List 25
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 17358081107
  • 1a462398 on github
  • Prev Job for on feature/environment-variables (#17277543781.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc